脚本宝典收集整理的这篇文章主要介绍了vue项目创建完出现found 23 vulnerabilities (2 low, 16 moderate, 5 high),解决办法,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
found 23 vulnerabilities (2 low, 16 moderate, 5 high)
run npm audit fix
to fix them, or npm audit
for details
D:myprojectyiyan_webauto $ npm audit fix npm ERR! code EAUDITNOPJSON npm ERR! audit No package.json found: Cannot audit a project without a package.json
npm ERR! A complete log of this run can be found in: npm ERR! D:Program Filesnodejsnode_cache_logs2022-03-01T04_21_12_141Z-debug.log
D:myprojectyiyan_webauto $ npm audit npm ERR! code EAUDITNOPJSON npm ERR! audit No package.json found: Cannot audit a project without a package.json
npm ERR! A complete log of this run can be found in: npm ERR! D:Program Filesnodejsnode_cache_logs2022-03-01T04_21_18_162Z-debug.log
以上报错是因为当前目录没有找到package.json ,cd到前端项目根目录再执行即可
D:myprojectyiyan_webautofront (master -> origin)
$ npm audit fix
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modulesfsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_moduleswatchpack-chokidar2node_modulesfsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_moduleswebpack-dev-servernode_modulesfsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
up to date in 5.064s
82 packages are looking for funding
run `npm fund` for details
fixed 0 of 23 vulnerabilities in 1208 scanned packages
2 package updates for 23 vulnerabilities involved breaking changes
(use `npm audit fix --force` to install breaking changes; or refer to `npm audit` for steps to fix these manually)
以上是脚本宝典为你收集整理的vue项目创建完出现found 23 vulnerabilities (2 low, 16 moderate, 5 high),解决办法全部内容,希望文章能够帮你解决vue项目创建完出现found 23 vulnerabilities (2 low, 16 moderate, 5 high),解决办法所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。