npm ERR! Windows_NT 10.0.19045
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "i"
npm ERR! node v14.3.0
npm ERR! npm v4.2.0
npm ERR! code CERT_HAS_EXPIRED
npm ERR! certificate has expired
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2024-02-02T02_24_39_953Z-debug.log
1、npm root -g
删除 \Users\Administrator\AppData\Roaming\npm\node_modules
2、还是报错
解决方案:
step1: npm cache clean --force
step2: 删除 node_modules
step3: 删除 package-lock.json
step4: npm install
项目启动成功了!!!