Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 493 Bytes

NPM.md

File metadata and controls

46 lines (32 loc) · 493 Bytes

切换npm镜像源

  1. 用npm全局安装nrm
npm install -g nrm --save
  1. 查看所有可用的源
*号即为当前使用的配置
nrm ls
  1. 添加源
nrm add 源的名称 https://地址
  1. 如果想删除某个源
nrm del 源的名字
  1. 切换到某个源
nrm use 源的名字
  1. 测试源的速度
nrm test
测试某一个源的速度
nrm test 源的名字
  1. 查看当前使用的是哪个源
nrm current