npm常见问题

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 set prefix"D:
odejs
ode_modules
pm
ode_global_modules"
npm config set cache"D:
odejs
ode_modules
pm
ode_cache"
原文地址:https://www.cnblogs.com/tkzc2013/p/14790869.html