Reputation: 1568
I've installed Node.js using the command sudo apt-get install nodejs
. This is installing Node version 6.5.0. But I have to work on version 6.1.0.
How can I install a specific version?
Upvotes: 1
Views: 1754
Reputation: 13547
You can use nvm to install a specific version of Node.js.
After installing nvm, use this in a terminal:
nvm install 6.1.0
Then, verify that the correct version has been installed by using node -V
. Using nvm, you can switch between Node versions trivially easily, which can be very helpful when you're using modules that require a specific version.
Upvotes: 4
Reputation: 332
this tutorial schould help you https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-16-04
Edit: got this from here https://ru.stackoverflow.com/a/521729
Upvotes: 0