修改鏡像源加速npm


1.查看當前使用的鏡像源

npm config get registry

2.修改鏡像源

臨時修改

npm install 軟件名 --registry https://registry.npm.taobao.org/

全局修改

npm config set registry https://registry.npm.taobao.org/

3.使用第三方軟件修改切換鏡像源 nrm

安裝nrm

npm install -g nrm

查看當前所有可用鏡像源

nrm ls

使用淘寶鏡像源

nrm use taobao

測試訪問速度

nrm test taobao

from: https://learnku.com/articles/15975/npm-accelerate-and-modify-mirror-source-in-china


免責聲明!

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



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