Important: This project is no longer supported. It has been superceded by Harmonious.
Ensure that your Node process is running with the correct Version. If
process.version
is not valid according to package.json
, then either switch
to that version using n
if it is installed, or install it first and then
use it.
The version change will only affect the current process, and will have no effect on the rest of your system
$ npm install -g n
$ npm install --save node-version
n
is the node version manage that is used to switch and download node versions.
As simple as can be:
{
"engines": {
"node": "=0.11.13"
}
}
/* top of file */
require('node-version-magic').enforce(function (err, satisfied) {
if (err) throw err;
console.log('My node version is: '+ satisfied); // satisfied = 0.11.13
});
// rest of your code...