全局安装nrm
npm --registry https://registry.npm.taobao.org install -g nrm #临时使用淘宝镜像源安装nrm
nrm --version #查看是否安装成功
nrm -h #查看命令帮助
查看可使用镜像源
nrm ls

使用镜像源
nrm use taobao #使用淘宝镜像源


自定义镜像源
#nrm add [reg_name] [URL] -- 添加
nrm add test https://registry.npmjs.org/
#nrm del [reg_name] -- 删除
nrm del test
网友评论