apm

Atom Package Manager

  • 所有者: atom/apm
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

apm - Atom Package Manager

Linux Build Status
Windows Build Status
Dependency Status

Discover and install Atom packages powered by atom.io

You can configure apm by using the apm config command line option (recommended) or by manually editing the ~/.atom/.apmrc file as per the npm config.

Relation to npm

apm bundles npm with it and spawns npm processes to install Atom packages. The major difference is that apm sets multiple command line arguments to npm to ensure that native modules are built against Chromium's v8 headers instead of node's v8 headers.

The other major difference is that Atom packages are installed to ~/.atom/packages instead of a local node_modules folder and Atom packages are published to and installed from GitHub repositories instead of npmjs.com

Therefore you can think of apm as a simple npm wrapper that builds on top of the many strengths of npm but is customized and optimized to be used for Atom packages.

Installing

apm is bundled and installed automatically with Atom. You can run the Atom > Install Shell Commands menu option to install it again if you aren't able to run it from a terminal (macOS only).

Building

  • Clone the repository
  • :penguin: Install libsecret-1-dev (or the relevant libsecret development dependency) if you are on Linux
  • Run npm install; this will install the dependencies with your built-in version of Node/npm, and then rebuild them with the bundled versions.
  • Run ./bin/npm run build to compile the CoffeeScript code (or .\bin\npm.cmd run build on Windows)
  • Run ./bin/npm test to run the specs (or .\bin\npm.cmd test on Windows)

Why bin/npm / bin\npm.cmd?

apm includes npm, and spawns it for various processes. It also comes with a bundled version of Node, and this script ensures that npm uses the right version of Node for things like running the tests. If you're using the same version of Node as is listed in BUNDLED_NODE_VERSION, you can skip using this script.

Using

Run apm help to see all the supported commands and apm help <command> to
learn more about a specific command.

The common commands are apm install <package_name> to install a new package,
apm featured to see all the featured packages, and apm publish to publish
a package to atom.io.

Two-factor authentication?

If you have 2fa enabled on your GitHub account, you'll need to generate a personal access token and provide that when prompted for your password.

Behind a firewall?

If you are behind a firewall and seeing SSL errors when installing packages
you can disable strict SSL by running:

apm config set strict-ssl false

Using a proxy?

If you are using a HTTP(S) proxy you can configure apm to use it by running:

apm config set https-proxy https://9.0.2.1:0

You can run apm config get https-proxy to verify it has been set correctly.

Viewing configuration

You can also run apm config list to see all the custom config settings.

主要指标

概览
名称与所有者atom/apm
主编程语言CoffeeScript
编程语言CoffeeScript (语言数: 7)
平台
许可证MIT License
所有者活动
创建于2013-05-07 16:27:05
推送于2022-09-28 10:52:02
最后一次提交2022-09-28 11:52:02
发布数283
最新版本名称v2.6.4 (发布于 2021-06-21 22:30:40)
第一版名称v0.1.0 (发布于 )
用户参与
星数1.3k
关注者数65
派生数295
提交数2.2k
已启用问题?
问题数629
打开的问题数188
拉请求数243
打开的拉请求数10
关闭的拉请求数66
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?