npm更換為淘寶鏡像源


博主送福利了,微信掃碼有驚喜。超值紅包等着你。。么么噠

 

言歸正轉

1.通過config命令

 
1
2
npm config set registry http: //registry.cnpmjs.org
npm info underscore (如果上面配置正確這個命令會有字符串response)

2.命令行指定

 
1
npm --registry http: //registry.cnpmjs.org info underscore

3.編輯 npmrc 加入下面內容

 
1
registry = http: //registry.cnpmjs.org

 


免責聲明!

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



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