npm/yarn查看當前使用源與設置其它源


npm, yarn查看源和換源:

npm config get registry  // 查看npm當前鏡像源 npm config set registry https://registry.npmjs.org yarn config get registry // 查看yarn當前鏡像源 yarn config set registry https://registry.yarnpkg.com 

鏡像源地址部分如下:

npm --- https://registry.npmjs.org/ npm --- https://registry.npm.taobao.org/ yarn --- https://registry.yarnpkg.com/ yarn --- https://registry.npm.taobao.org/ cnpm --- https://r.cnpmjs.org/ taobao --- https://registry.npm.taobao.org/ nj --- https://registry.nodejitsu.com/ rednpm --- https://registry.mirror.cqupt.edu.cn/ npmMirror --- https://skimdb.npmjs.com/registry/ deunpm --- http://registry.enpmjs.org/

轉載自:https://www.jianshu.com/p/6bf3f2aa1ef8


免責聲明!

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



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