【记录】vue构建项目npm install错误run `npm audit fix` to fix them, or `npm audit` for details

今天构建vue项目执行npm install初始化后报错

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

出现这问题控制台会有一系列提示,让你输入对应命令,所以我进行了如下命令操作:

1:首先安装模块依赖:

npm install

 2:如果出现以上提示,继续输入:

(npm audit fix 含义: 检测项目依赖中的漏洞并自动安装需要更新的有漏洞的依赖,而不必再自己进行跟踪和修复。)

npm audit fix

  

 3:如果出现以上提示,继续输入

npm audit fix –force

 

4:如果出现以上提示,继续输入

npm audit

  

 5:至此项目配置完毕,运行工程

npm run dev

  

 参考地址:https://www.jianshu.com/p/60591cfc6952

希望能帮助到大家。

原文地址:https://www.cnblogs.com/wbl001/p/11526528.html