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"
