首页 > 其他 > 详细

vue--npm install只许成功,不许失败

时间:2019-11-19 22:25:09      阅读:86      评论:0      收藏:0      [点我收藏+]

npm安装时出现run `npm audit fix` to fix them, or `npm audit` for details

方案一:

      1、如果你的项目里存在 package-lock.json 文件,删除它。并且删除 node_modules。然后再 npm install。

      2、第一步不行的话。运行 npm cache clean --force 或者 npm cache verify 。然后再 npm install。

      3、如果上面的都不行,就升级 npm 。 npm i -g npm

      解决安装慢问题:npm install --registry=https://registry.npm.taobao.org 

 

方案二:

1、npm audit fix
2、npm audit fix --force
3、npm audit

 

vue--npm install只许成功,不许失败

原文:https://www.cnblogs.com/lutt/p/11892644.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!