3.0.1 • Published 11 years ago
nodemagic v3.0.1
nodemagic
Run versions of node and npm specified in your ./package.json.
Features
- Automatically reads
package.json/enginesand uses those versions. - Automatically installs and caches npm and node versions for your specific platform
- Probably works.
Usage
npm install nodemagic -gor download and placenodemagicin your path. Sorry, no copy-paste bash one-liner.cdinto a project that haspackage.jsonwithenginesset up.- Use:
nodemagic npm installisntead ofnpm installnodemagic node app.jsinstead 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