1.得到原本的镜像地址
npm get registry
> https://registry.npmjs.org/
设成淘宝的
npm config set registry https://registry.npmmirror.com
yarn config set registry https://registry.npmmirror.com
2.换成原来的
npm config set registry https://registry.npmjs.org/
1.得到原本的镜像地址
npm get registry
> https://registry.npmjs.org/
设成淘宝的
npm config set registry https://registry.npmmirror.com
yarn config set registry https://registry.npmmirror.com
2.换成原来的
npm config set registry https://registry.npmjs.org/