found 84 vulnerabilities (65 low, 7 moderate, 11 high, 1 critical) vue使用时提示有漏洞

465 阅读2分钟
found 84 vulnerabilities (65 low, 7 moderate, 11 high, 1 critical)
  run `npm audit fix` to fix them, or `npm audit` for details

vue使用时提示有漏洞,那么就是直接按照后面提示的命令npm audit fix 就可以解决
之后会有报错

npm ERR! code ELOCKVERIFY
npm ERR! Errors were found in your package-lock.json, run  npm install  to fix t
hem.
npm ERR!     Missing: chromedriver@^2.27.2

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2019-08-14T0
2_42_33_902Z-debug.log

请清除缓存

npm cache clean --force

备注:

解决vue项目npm install 时出现的found 718 vulnerabilities报错

报错翻译:虽然警告有漏洞,但是不影响运行

解决1:nmp清缓存:npm cache clean --force
解决2:把项目中的node_modules文件删掉,再执行npm install。这时候就会发现没有警告了。

说明:解决原理是一样的

found 84 vulnerabilities (65 low, 7 moderate, 11 high, 1 critical)
  run `npm audit fix` to fix them, or `npm audit` for details

12

##vue使用时提示有漏洞,那么就是直接按照后面提示的命令npm audit fix 就可以解决
之后会有报错

npm ERR! code ELOCKVERIFY
npm ERR! Errors were found in your package-lock.json, run  npm install  to fix t
hem.
npm ERR!     Missing: chromedriver@^2.27.2

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache_logs\2019-08-14T0
2_42_33_902Z-debug.log

12345678

请清除缓存

npm cache clean --force

解决vue项目npm install 时出现的found 718 vulnerabilities报错

报错翻译:虽然警告有漏洞,但是不影响运行

解决1:nmp清缓存:npm cache clean --force
解决2:把项目中的node_modules文件删掉,再执行npm install。这时候就会发现没有警告了。

说明:解决原理是一样的

found 84 vulnerabilities (65 low, 7 moderate, 11 high, 1 critical)
  run `npm audit fix` to fix them, or `npm audit` for details

12

##vue使用时提示有漏洞,那么就是直接按照后面提示的命令npm audit fix 就可以解决
之后会有报错

npm ERR! code ELOCKVERIFY
npm ERR! Errors were found in your package-lock.json, run  npm install  to fix t
hem.
npm ERR!     Missing: chromedriver@^2.27.2

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache_logs\2019-08-14T0
2_42_33_902Z-debug.log

12345678

请清除缓存

npm cache clean --force