It doesn’t need to. APM, like NPM, can install a package directly from any git repository that it can read if you give it the URL. Type
apm help install in your command line to see all of the options.
$ apm help install
Usage: apm install [<package_name>...]
apm install <package_name>@<package_version>
apm install <git_remote>
apm install <github_username>/<github_project>
apm install --packages-file my-packages.txt
apm i (with any of the previous argument usage)
Install the given Atom package to ~/.atom/packages/<package_name>.
If no package name is given then all the dependencies in the package.json
file are installed to the node_modules folder in the current working
A packages file can be specified that is a newline separated list of
package names to install with optional versions using the
--check Check that native build tools are installed [boolean]
--verbose Show verbose debug information [boolean] [default: false]
--packages-file A text file containing the packages to install [string]
--production Do not install dev dependencies [boolean]
-c, --compatible Only install packages/themes compatible with this Atom version [string]
-h, --help Print this usage message
-s, --silent Set the npm log level to silent [boolean]
-q, --quiet Set the npm log level to warn [boolean]
Prefix an option with `no-` to set it to false such as --no-color to disable
I’m not sure if APM requires anything special to be able to access a private repo, but I don’t expect it to, since your private repo credentials will be stored with your global git settings.
If that doesn’t work, just open the local repo and run
apm link and
apm install, then tell everyone else to clone it and run those same commands. That will work 100% of the time. You do not want to put your own code in
.atom/packages/ as a matter of hygiene. The
apm link command creates a symbolic link, a fake folder in
packages/ that looks like a real one and acts as a shortcut to the real folder. The important part is to have everything in
packages/ be able to be deleted without losing anything that you can’t just download again.