1.命令:
npm config set registry https://registry.npm.taobao.org
2.是否已成功? 可以验证一下
npm config get registry
如果返回
https://registry.npm.taobao.org
成功了!
TIP:yarn 也上述方式一样
把下图中的 npm
改为 yarn
就可以了
1.命令:
npm config set registry https://registry.npm.taobao.org
2.是否已成功? 可以验证一下
npm config get registry
如果返回
https://registry.npm.taobao.org
成功了!
TIP:yarn 也上述方式一样
把下图中的 npm
改为 yarn
就可以了