ATOM 设置HTTP代理

by Web全栈工程师 on 2015 年 12 月 01 日

atom 使用package install安装相关依赖比较慢,有时候需要翻墙才能安装。

atom支持代理模式,

  1. 安装shadowsocks等本地代理
  2. 修改atom apm配置文件

打开命令行,配置apm的代理

apm config set strict-ssl false

apm config set https-proxy https://127.0.0.1:1080

apm config set http-proxy http://127.0.0.1:1080

apm config list

Windows 下打印apm config list:

; cli configs
globalconfig = "C:\\Users\\Administrator\\.atom\\.apm\\.apmrc"
user-agent = "npm/2.13.3 node/v0.10.40 win32 ia32"
userconfig = "C:\\Users\\Administrator\\.atom\\.apmrc"

; userconfig C:\Users\Administrator\.atom\.apmrc
http-proxy = "http://127.0.0.1:1080"
https-proxy = "https://127.0.0.1:1080/"
strict-ssl = false

; globalconfig C:\Users\Administrator\.atom\.apm\.apmrc
cache = "C:\\Users\\Administrator\\.atom\\.apm"

; node bin location = C:\Users\Administrator\AppData\Local\atom\app-1.2.4\resources\app\apm\bin\node.exe
; cwd = C:\Users\Administrator
; HOME = C:\Users\Administrator
; 'npm config ls -l' to show all defaults.

参考资料:https://github.com/atom/apm#behind-a-firewall

原创文章,转载请注明:转载自Web开发笔记 | ATOM 设置HTTP代理

本文链接地址:https://www.magentonotes.com/atom-proxy-install-package.html

Comments on this entry are closed.

Previous post:

Next post: