查看npm和yarn 的鏡像源和配置淘寶鏡像源


1、查看

 

#npm:
npm config get registry



#yarn:
yarn config get registry

 

2、設置

#(命令行)設置淘寶源
#npm: npm config
set registry https://registry.npm.taobao.org


#yarn
yarn config set registry https://registry.npm.taobao.org --global
yarn config set disturl https://npm.taobao.org/dist --global

 


免責聲明!

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



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