npm使用淘寶鏡像源


npm使用淘寶鏡像源

單次使用

npm install koa --registry=https://registry.npm.taobao.org

永久使用

配置淘寶鏡像源

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

查看配置是否成功

npm config get registry

使用

npm install koa

cnpm

安裝cnpm

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

檢查安裝是否成功

cnpm -v

使用

cnpm install koa


免責聲明!

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



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