NVM (Node Version Manager) is a command-line tool that allows you to manage multiple versions of Node.js on a single system. Let's Learn
To install NVM (Node Version Manager) on Ubuntu, follow these steps:
Update the package list: Open your terminal and run:
Install prerequisites:
You need curl
to download the installation script. Install it using:
Download and install NVM: Use the following command to download the installation script for NVM:
Activate NVM:
The installer will add the necessary lines to your shell profile file (like .bashrc
, .bash_profile
, or .zshrc
). To activate NVM, either restart your terminal or run the following:
(or replace .bashrc
with your specific shell file, e.g., .zshrc
for Zsh).
Verify the installation: To check if NVM was installed successfully, run:
You should see the NVM version printed in the terminal.
That's it! You've successfully installed NVM on your Ubuntu system.
Keep Healthy and Happy Coding! ๐