Npm 和 Yarn 设置镜像

2020-07-26  本文已影响0人  小马哥_2020

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
上一篇 下一篇

猜你喜欢

热点阅读