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

猜你喜欢

转载自www.cnblogs.com/lutt/p/11892644.html