@zslzxc
2018-02-27T02:46:35.000000Z
字数 980
阅读 1061
atom
下载完成后双击打开deb包,完成安装。
Atom的插件更新功能由apm提供。
Apm内部封装了一个npm。熟悉JS的同学会对npm非常的熟悉。apm更新插件时会先发送请求到atom.io/api/packages获取所有安装的包的最新信息。如果发现有更新的版本,apm会利用npm获取最新的包。所以,如果你刷不出来列表,多半是因为无法连接到atom.io。刷出来列表了,但是更新时出现网络错误,可能是因为无法连接到npm的源。
要设置apm使用的软件源很简单,执行下列命令:
apm config set registry http://registry.npm.taobao.org
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.
选项:
--color Enable colored output [boolean] [默认值: true]
-v, --version Print the apm version
-h, --help Print this usage message
cd /home/amor/.atom/packages
apm install language-nginx
重启Atom