说一说用nrm切换npm仓库地址

92 阅读1分钟

Install

  

   $ npm install -g nrm
  

Example

  

   $ nrm ls
  

  

    
  

  

   * npm -----  https://registry.npmjs.org/
  

  

     cnpm ----  http://r.cnpmjs.org/
  

  

     taobao --  https://registry.npm.taobao.org/
  

  

     nj ------  https://registry.nodejitsu.com/
  

  

     rednpm -- http://registry.mirror.cqupt.edu.cn
  

  

     skimdb -- https://skimdb.npmjs.com/registry
  

  

    
  
  

   $ nrm use cnpm  //switch registry to cnpm
  

  

    
  

  

       Registry has been set to: http://r.cnpmjs.org/
  

  

   

  

  

   

  

  

   nrm 地址