npm,yarn如何查看源和換源

pm config get registry  // 查看npm當前鏡像源

npm config set registry https://registry.npm.taobao.org/  // 設置npm鏡像源爲淘寶鏡像

yarn config get registry  // 查看yarn當前鏡像源

yarn config set registry https://registry.npm.taobao.org/  // 設置yarn鏡像源爲淘寶鏡像

鏡像源地址部分如下:

npm --- https://registry.npmjs.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/
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章