npm 镜像切换

2020-08-13  本文已影响0人  RadishHuang

npm镜像

npm config set registry https://registry.npm.taobao.org 
npm info underscore (如果上面配置正确这个命令会有字符串response)
npm config set registry https://registry.npm.taobao.org/

原始源:

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

配置后可通过下面方式验证是否成功:

npm config get registry
上一篇下一篇

猜你喜欢

热点阅读