- 国内镜像网站(阿里)
https://npmmirror.com/
-
执行命令:
npm config get registry默认输出国外镜像地址:
https://registry.npmjs.org/ -
执行命令(get变set):
npm config set registry https://registry.npmmirror.com/再次执行命令:
npm config get registry输出国内镜像网站:
https://registry.npmmirror.com/