工具:*
利用ss建立代理服务,之后apm --help
,得到apm的配置命令:
apm - Atom Package Manager powered by https://atom.io
Usage: apm <command>
where <command> is one of:
clean, config, dedupe, deinstall, delete, dev, develop, disable, docs,
enable, erase, featured, home, i, init, install, link, linked, links, list,
ln, lns, login, ls, open, outdated, publish, rebuild, rebuild-module-cache,
remove, rm, search, show, star, starred, stars, test, uninstall, unlink,
unpublish, unstar, update, upgrade, view.
Run `apm help <command>` to see the more details about a specific command.
Options:
--color Enable colored output [boolean] [default: true]
-v, --version Print the apm version
-h, --help Print this usage message
Prefix an option with `no-` to set it to false such as --no-color to disable
colored output.
再apm config --help
得到:
Usage: apm config set <key> <value>
apm config get <key>
apm config delete <key>
apm config list
apm config edit
Options:
-h, --help Print this usage message
Prefix an option with `no-` to set it to false such as --no-color to disable
colored output.
最后设置:
apm config set http-proxy http://127.0.0.1:1080
apm config set https-proxy http://127.0.0.1:1080
设置好代理之后,就可以任意安装atom的package了。