LoginSignup
10
6

More than 5 years have passed since last update.

node.jsでプロキシ設定を削除する

Posted at

プロキシ環境下から使用しない環境に移った時にプロキシ設定が邪魔になりました。
軽くググッても情報出なかったので、軽い気持ちで空文字をセットしたらWARNが出るように……。

npm WARN invalid config proxy=""
npm WARN invalid config Must be a full url with 'http://'
npm WARN invalid config proxy=""
npm WARN invalid config Must be a full url with 'http://'

Stack Over Flowで漁って見たら下記が有効でした。
http://stackoverflow.com/questions/21228995/how-to-clear-https-proxy-setting-of-npm

npm config rm proxy
npm config rm https-proxy

なるほどなるほど。

10
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
6