APM (AMD Package Manager) is a npm-based package manager for AMD.
If your node version >= 4.7.0, feel free to install.
$ [sudo] npm install -g apmjs
Make sure you have it
$ apmjs -v
e.g. install https://registry.npmjs.org/@searchfe%2Fpromise
$ apmjs install @searchfe/promise
For more details, see: https://github.com/apmjs/apmjs/wiki.
apmjs install
: Resolve and flatten ddependencies, see dependency-resolvingapmjs link
: Link to/from<npm-prefix>/lib/amd_modules
, install as neededapmjs unlink
: Unlink global AMD modulesapmjs version
: Prints apmjs version, of course..js
is not allowed in package name, since.js
is always appended when require.js fetching scripts.