npm install 失败:

52 packages are looking for funding
run `npm fund` for details

found 1142 vulnerabilities (522 low, 130 moderate, 489 high, 1 critical)

解决1:nmp清缓存:npm cache clean --force

解决2:把项目中的node_modules文件删掉,再执行npm install。这时候就会发现没有警告了。

 

npm目录配置

#查看配置
npm config list -g
npm config ls -l

#目录先建好
npm config set prefix"D:\nodejs\node_modules\npm\node_global_modules"
npm config set cache"D:\nodejs\node_modules\npm\node_cache"

 

相关文章:

  • 2021-04-30
  • 2021-10-17
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2023-03-15
  • 2022-01-18
  • 2021-06-11
  • 2021-04-02
相关资源
相似解决方案