run `npm audit fix` to fix them, or `npm audit` for details

最近,将以前的项目代码重新运行时遇见了这个问题
执行npm install(或npm i)控制台出现如下提醒错误:

added 253 packages from 162 contributors and audited 1117 packages in 42.157s
found 5 vulnerabilities (1 low, 4 high)
  run `npm audit fix` to fix them, or `npm audit` for details html

大意为:

运行’ npm audit fix ‘来修复它们,或者运行’ npm audit '来查看详细的html

按照控制台提示的命令,输入‘npm audit fix’,控制台提示:

 package update for 5 vulns involved breaking changes
  (use `npm audit fix --force` to install breaking changes; or do it by hand)

输入:‘npm audit fix --force’后,控制台提示:

added 162 packages from 111 contributors, removed 64 packages and updated 23 packages in 42.194sfixed 5 of 5 vulnerabilities in 1117 scanned packages
  1 package update for 5 vulns involved breaking changes
  (installed due to `--force` option)

重新输入: npm audit之后控制台无提示错误,问题解决,此时可以输入:npm run dev运行

这次问题的出现,我个人理解是npm版本有新的技术升级,增加了一些新的东西,提示用户有新的知识点,顺便打波广告,增加用户影响【哈哈哈】

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值