npm和yarn设置镜像源

npm

设置为淘宝源
npm config set registry https://registry.npm.taobao.org

使用nrm管理

nrm: npm registry manage

nrm ls

yarn

查看源
yarn config get registry
设置为淘宝源
yarn config set registry https://registry.npm.taobao.org
设置为默认
yarn config set registry https://registry.yarnpkg.com

posted @ 2019-12-08 12:09  脚本小娃子  阅读(397)  评论(0编辑  收藏  举报