Run versions of node
and npm
specified in your ./package.json
.
- Automatically reads
package.json/engines
and uses those versions. - Automatically installs and caches npm and node versions for your specific platform
- Nothing to configure
npm install nodemagic -g
or download and placenodemagic
in your path. Sorry, no copy-paste bash one-liner.cd
into a project that haspackage.json
withengines
set up.- Use:
nodemagic npm install
isntead ofnpm install
nodemagic node app.js
instead ofnode app.js
, etc...
You can also alias node
to nodemagic node
and npm
to nodemagic npm
Probably some semver issues. Please report issues and make PRs.
None of those allow decoupling of node
and npm
versions. Or read engines
. I think.
Fix it and make a PR please!
MIT