如何设置npm包管理工具的下载代理?

I solved this problem this way:

  1. I run this command: npm config set strict-ssl false
  2. Then set npm to run with http, instead of https: npm config set registry "http://registry.npmjs.org/"
  3. Then I install packages using this syntax: npm --proxy http://username:password@cacheaddress.com.br:80 install packagename

 

http://howtonode.org

转载于:https://www.cnblogs.com/vyvi/archive/2013/03/13/2958522.html