📅  最后修改于: 2023-12-03 15:03:20.038000             🧑  作者: Mango
nvm
is a version manager for Node.js that allows you to easily install, switch and manage multiple versions of Node.js. In this tutorial, we will learn how to install nvm
on Ubuntu using the terminal.
Before we begin, make sure you have the following:
nvm
nvm
can be installed using the terminal. Follow the steps below.
Open a terminal window by pressing Ctrl+Alt+T
or by searching for Terminal in the applications menu.
Type the following command to download the nvm
installation script:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
nvm
:source ~/.bashrc
nvm
is installed correctly by typing the following command. You should see your current version of nvm
:nvm --version
Congratulations! You have successfully installed nvm
on Ubuntu.
Now that you have nvm
installed on your system, you can easily install, switch, and manage multiple versions of Node.js on your Ubuntu machine. If you have any questions or feedback, feel free to leave a comment below.