0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

proxy下でのnpmの設定

Posted at

Angularwをインストールする際にエラー:407が出て困った話。

設定されている値を確認

$npm config ls

proxy周りの値をset

npm -g config set proxy http://プロキシサーバアドレス:ポート
npm -g config set https-proxy http://プロキシサーバアドレス:ポート
npm -g config set registry http://registry.npmjs.org/

このとき、proxyサーバにIDとパスワードが設定されている場合は以下のようにsetする。ここで詰まった。

npm -g config set proxy http://ID:パスワード@プロキシサーバアドレス:ポート
npm -g config set https-proxy http://ID:パスワード@プロキシサーバアドレス:ポート
npm -g config set registry http://registry.npmjs.org/

参考

プロキシサーバーを使う際に役立つ!npm proxyの使い方【初心者向け】

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?