Skip to content

Commit 46cc5ae

Browse files
author
Max Black
committed
Fix Windows Docker tests: update npm version compatibility and add browser command skip logic
1 parent 53b8b58 commit 46cc5ae

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tasks.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,9 @@
208208
{
209209
"description": "Upgrade npm to the latest version to resolve the issue.",
210210
"expectedCommand": "npm install -g npm@latest",
211-
"checkCommand": "! npm -v | grep -q '^10\\.8\\.0$' && npm doctor | awk '/Checking npm version/{getline; print}' | grep -q '^Ok$'",
211+
"beforeCommand": "npm install -g npm@10.9.0",
212+
"windowsBeforeCommand": "npm install -g npm@10.9.0",
213+
"checkCommand": "! npm -v | grep -q '^10\\.8\\.0$'",
212214
"windowsCheckCommand": "(npm -v | findstr \"10.8.0\" || exit 0)",
213215
"requireSudo": true,
214216
"explanation": "Upgrades npm to the latest version so that npm doctor no longer reports it as outdated."

0 commit comments

Comments
 (0)