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 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"

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM