书山有路勤为径,学海无涯苦作舟

npm和yarn配置淘宝镜像

123浏览

npm淘宝镜像官网:https://npm.taobao.org

设置npm代理

npm config set registry https://registry.npm.taobao.org && npm config set disturl https://npm.taobao.org/dist && npm config set electron_mirror https://npm.taobao.org/mirrors/electron/ && npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/ && npm config set phantomjs_cdnurl https://npm.taobao.org/mirrors/phantomjs/

yarn设置代理

yarn config set registry https://registry.npm.taobao.org -g && yarn config set disturl https://npm.taobao.org/dist -g && yarn config set electron_mirror https://npm.taobao.org/mirrors/electron/ -g && yarn config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/ -g && yarn config set phantomjs_cdnurl https://npm.taobao.org/mirrors/phantomjs/ -g && yarn config set chromedriver_cdnurl https://cdn.npm.taobao.org/dist/chromedriver -g && yarn config set operadriver_cdnurl https://cdn.npm.taobao.org/dist/operadriver -g && yarn config set fse_binary_host_mirror https://npm.taobao.org/mirrors/fsevents -g
本文章由 https://itdashu.com 原创发布,欢迎转载,转载请注明出处。
投稿或联系站长请发送邮件至 leno@itdashu.com。

抢沙发

共同学习,写下你的评论
姓名
电子邮件
个人主页