美文网首页
Npm 和 Yarn 设置镜像

Npm 和 Yarn 设置镜像

作者: 小马哥_2020 | 来源:发表于2020-07-26 22:01 被阅读0次

NPM

  • 查询当前镜像
npm get registry 
  • 设置为淘宝镜像
npm config set registry https://registry.npm.taobao.org/

设置为官方镜像

npm config set registry https://registry.npmjs.org/

YARN

  • 查询当前镜像
yarn config get registry
  • 设置为淘宝镜像
yarn config set registry https://registry.npm.taobao.org/
  • 设置为官方镜像
yarn config set registry https://registry.yarnpkg.com

相关文章

网友评论

      本文标题:Npm 和 Yarn 设置镜像

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