Pratik Gaikwad
Pratik Gaikwad

Reputation: 1568

How to install NodeJS 6.1.0 on Ubuntu 16.04

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

Answers (2)

Aurora0001
Aurora0001

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

Related Questions