linux: npm配置镜像源
一,查看镜像源
$ npm config get registry
二,配置镜像源:
执行:
npm config set registry https://registry.npmmirror.com
如下:
lhd@lhd-pc:~$ npm config get registry
https://registry.npmjs.org/
lhd@lhd-pc:~$ npm config set registry https://registry.npmmirror.com
lhd@lhd-pc:~$ npm config get registry
https://registry.npmmirror.com
浙公网安备 33010602011771号