美文网首页
设置淘宝镜像

设置淘宝镜像

作者: 海龟大神 | 来源:发表于2017-08-23 16:11 被阅读19次

安装完node后建议设置npm镜像以加速后面的过程(或使用科学上网工具)。注意:不要使用cnpm!cnpm安装的模块路径比较奇怪,packager不能正常识别!

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

安装完yarn后同理也要设置镜像源:

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

相关文章

网友评论

      本文标题:设置淘宝镜像

      本文链接:https://www.haomeiwen.com/subject/wgzddxtx.html