Install Node.js on a Ubuntu machine using Nvm?

rusty1_rusty1 asked this question 6 months ago
rusty1_rusty1 on Feb 15

My machine runs the Ubuntu operating system.

How do I install Node.js using Node.js Version Manager (Nvm)?

Thanks in advance!

2 suggested answers
timmy123 on Mar 14 · Edited

Open a new terminal window on your machine (CTRL+ALT+T keyboard shortcut).

Then run the script to install Nvm:

curl -o- | bash

When that's done, verify that it was installed correctly:

nvm --version

That should output a version number.

Then, you can install the latest version of Node.js:

nvm install node

When the installation process is complete, test to make sure Node.js was installed correctly:

node --version

You can read more on their GitHub page:

0 replies
softwareguy411 on Mar 14

Nvm provides a good guide in their documentation:

0 replies