查看npm的镜像源地址 npm查看与设置镜像源地址

9,056 阅读1分钟

1、查看当前镜像源地址

npm get registry

2、设置镜像源地址

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

3、设置镜像淘宝源地址

npm config set registry http://registry.npm.taobao.org/
  1. 恢复默认镜像地址 删除会恢复默认镜像
npm config delete registry

5.测试下速度

nrm test npm