npm 換源


一、使用淘寶鏡像
1.臨時使用
npm --registry https://registry.npm.taobao.org install express

2.持久使用
npm config set registry https://registry.npm.taobao.org

3.通過cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org

二、使用官方鏡像
npm config set registry https://registry.npmjs.org/

三、查看npm源地址
npm config get registry



作者:nickfox
鏈接:https://www.jianshu.com/p/f311a3a155ff
來源:簡書
簡書著作權歸作者所有,任何形式的轉載都請聯系作者獲得授權並注明出處。


免責聲明!

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



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