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"
