日々精進

新しく学んだことを書き留めていきます

npmをプロキシ経由で使う方法

以下のコマンドを各自環境に合わせて修正して実行すればいいっぽい。

npm config set strict-ssl false
npm config set registry "http://registry.npmjs.org/"
npm --proxy http://username:password@cacheaddress.com.br:80



これでパッケージインストールし放題だやっほー!
参考:node.js - Is there a way to make npm install (the command) to work behind proxy? - Stack Overflow