You need to install on the server a version of node.js and various modules dated 2014th year. Found on Github'e all the necessary versions, but how to put them correctly?

1 answer 1

To manage Node.js versions, NVM is very convenient to use (for Windows there is a slightly less functional equivalent). You can install several versions of Node.js at once and switch between them at will:

nvm use 4.4.7 Now using node v4.4.7

In order to install a specific version of the modules, simply specify the required versions in the package.json file. If you install modules by specifying the --save parameter, then these modules are written in package.json, there you can compile the required version of the module, and then run npm update

 npm install modulename --save 

package.json:

 { "dependencies": { "modulename1": "0.11.2", "modulename2": "^1.4.1" } }