npm install 报错:found XXX vulnerabilities (XXX low, X moderate),run `npm audit fix` to fix them, or `

Posted 简简单单OnlineZuozuo

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了npm install 报错:found XXX vulnerabilities (XXX low, X moderate),run `npm audit fix` to fix them, or `相关的知识,希望对你有一定的参考价值。

npm install 报错:found XXX vulnerabilities (XXX low, X moderate),run npm audit fix to fix them, or npm audit for details


如果觉得本文对你有帮助,可以一键三连支持,谢谢

Process 产生场景


Git 拉取项目,然后 npm i 装包,然后报错

found 5546 vulnerabilities (5546 low, 4 moderate)
  run `npm audit fix` to fix them, or `npm audit` for details

Process 解决


执行 npm audit fix

没用,然后执行 npm cache clean --force 清除缓存,并删掉 node_modules
检查 package.json 文件,如果缺少 ,则执行 npm init -y

然后把包装回来 npm i,然后 npm run build,项目成功运行

本文地址 https://wretchant.blog.csdn.net/article/details/118092981
博客地址 https://wretchant.blog.csdn.net/

以上是关于npm install 报错:found XXX vulnerabilities (XXX low, X moderate),run `npm audit fix` to fix them, or `的主要内容,如果未能解决你的问题,请参考以下文章

npm ERR! notarget No matching version found for xxx@^1.0.64. npm 插件安装失败

运行npm install时found 9351 high severity vulnerabilities

报错 Invalid bound statement (not found): com.xxx.mapper.xxx

mac 终端报错 zsh: command not found: xxx

Vue 报错/警告 export ‘default‘ (imported as ‘xxx‘) was not found

"export 'xxx' (imported as '_xxx') was not found in 'vue'解决方案