yelai-z
5/16/2018 - 2:07 PM

使用nrm管理npm源

使用nrm管理npm源

  • 安装
    npm install nrm -g
  • 查看帮助
    nrm —-help
  • 添加新源:
    nrm add newreg http://registry.npmjs.new.com
  • 展示所有可用源
    nrm ls
  • 测试每个源的速度
    nrm test
  • 在不同源之间切换
    nrm use cnpm