LoginSignup
18
21

More than 5 years have passed since last update.

プロキシ環境下でapm installできない

Last updated at Posted at 2015-10-13

タイトルの通り、プロキシ環境下で apm install atom-typescript とか出来ずに困った時のまとめ。

apm proxy

apm のプロキシ設定の仕方.

$ apm config set http-proxy http://(proxy-addr):(proxy-port)
$ apm config set https-proxy http://(proxy-addr):(proxy-port)
$ apm config set strict-ssl false

設定ファイルは ~/.atom/.apmrc にできる。
認証ありプロキシの場合は http://(user):(pass)@(proxy-addr):(proxy-port)

まだ、できない

それでもErrorが出る時は↓の環境変数をsetする。

Windows temporary:

set ATOM_NODE_URL=http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist

Windows permanently:

setx ATOM_NODE_URL http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist /M

Mac & Linux ~/.bash_profile:

export ATOM_NODE_URL=http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist

References

18
21
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
18
21