小陆同学

python 中文名:蟒蛇,设计者:Guido van Rossum

导航

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

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

 

posted on 2019-11-19 21:43  小陆同学  阅读(897)  评论(0编辑  收藏  举报