nodemagic
v3.0.1
Published
'node' and 'npm' replacement that uses versions from package.json/engines.
Downloads
11
Maintainers
Readme
nodemagic
Run versions of node
and npm
specified in your ./package.json
.
Features
- Automatically reads
package.json/engines
and uses those versions. - Automatically installs and caches npm and node versions for your specific platform
- Probably works.
Usage
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
Bugs
Probably some semver issues. Please report issues and make PRs.
FAQs
Why not n
or nvm?
None of those allow decoupling of node
and npm
versions. Or read engines
. I think.
Your bash is too hacky
Fix it and make a PR please!
License
MIT