nvm command not found - Ubuntu

Page content

How to Install nvm Command on Ubuntu

If you are using Ubuntu and you find that the nvm command is not available, you may need to install Node Version Manager (nvm) to manage multiple active Node.js versions on your system.

Step 1: Install nvm

You can install nvm by running the following command in your terminal:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash

After the installation is complete, close and reopen your terminal to start using the nvm command.

Step 2: Verify nvm Installation

To verify that nvm has been successfully installed, you can run the following command:

nvm --version

If you see the version number displayed, it means nvm has been installed correctly.

Note for Ubuntu Users

If you encounter any issues with the curl command not being available, you can install it using the following command:

sudo apt-get update
sudo apt-get install curl

Conclusion

Node Version Manager (nvm) is a useful tool for managing multiple Node.js versions on your system. By following the steps outlined in this tutorial, you can successfully install nvm on your Ubuntu machine and start managing your Node.js installations efficiently.