node查看源切换淘宝源

  • 查看当前源
npm config get registry
# or
yarn config get registry
  • 切换淘宝源
npm config set registry https://registry.npm.taobao.org
# or
yarn config set registry https://registry.npm.taobao.org
  • 切换yarn源
yarn config set registry https://registry.yarnpkg.com
posted @ 2020-02-27 14:40  大圣巴巴  阅读(396)  评论(0编辑  收藏