|
51 | 51 | "windowsBeforeCommand": "if exist node_modules (rmdir /s /q node_modules)", |
52 | 52 | "preCheckCommand": "test ! -d node_modules && test -f package-lock.json", |
53 | 53 | "windowsPreCheckCommand": "if not exist node_modules (if exist package-lock.json (exit 0) else (exit 1)) else (exit 1)", |
54 | | - "checkCommand": "npm list axios | grep -q 'axios' && test -d node_modules && test package-lock.json -ot node_modules", |
| 54 | + "checkCommand": "npm list axios | grep -q 'axios' && test -d node_modules", |
55 | 55 | "windowsCheckCommand": "npm list axios | findstr /C:\"axios\" && if exist node_modules (exit 0) else (exit 1)", |
56 | 56 | "explanation": "Performs a clean install of dependencies based on package-lock.json, removing node_modules first." |
57 | 57 | }, |
|
197 | 197 | { |
198 | 198 | "description": "Diagnose common environment problems.", |
199 | 199 | "expectedCommand": "npm doctor", |
200 | | - "beforeCommand": "npm install -g npm@11.6.1", |
| 200 | + "beforeCommand": "npm install -g npm@10.8.0", |
201 | 201 | "beforeRequiresSudo": true, |
202 | | - "preCheckCommand": "npm -v | grep -q '^11\\.6\\.1$'", |
203 | | - "windowsPreCheckCommand": "npm -v | findstr \"11.6.1\"", |
| 202 | + "preCheckCommand": "npm -v | grep -q '^10\\.8\\.0$'", |
| 203 | + "windowsPreCheckCommand": "npm -v | findstr \"10.8.0\"", |
204 | 204 | "outputIncludes": "Use npm v", |
205 | 205 | "nonZeroOkay": true, |
206 | 206 | "explanation": "Runs a set of checks to identify potential issues in your npm and Node.js setup." |
207 | 207 | }, |
208 | 208 | { |
209 | 209 | "description": "Upgrade npm to the latest version to resolve the issue.", |
210 | 210 | "expectedCommand": "npm install -g npm@latest", |
211 | | - "checkCommand": "! npm -v | grep -q '^11\\.6\\.1$' && npm doctor | awk '/Checking npm version/{getline; print}' | grep -q '^Ok$'", |
212 | | - "windowsCheckCommand": "(npm -v | findstr \"11.6.1\" || exit 0)", |
| 211 | + "checkCommand": "! npm -v | grep -q '^10\\.8\\.0$' && npm doctor | awk '/Checking npm version/{getline; print}' | grep -q '^Ok$'", |
| 212 | + "windowsCheckCommand": "(npm -v | findstr \"10.8.0\" || exit 0)", |
213 | 213 | "requireSudo": true, |
214 | 214 | "explanation": "Upgrades npm to the latest version so that npm doctor no longer reports it as outdated." |
215 | 215 | }, |
216 | 216 | { |
217 | 217 | "description": "Run npm doctor again to confirm the issue is resolved.", |
218 | 218 | "expectedCommand": "npm doctor", |
219 | | - "outputIncludes": "Checking npm version", |
220 | 219 | "nonZeroOkay": true, |
221 | 220 | "explanation": "Verifies that npm doctor no longer reports the outdated npm version." |
222 | 221 | }, |
|
0 commit comments