
Node Version Manager (NVM) allows you to install and switch between different versions of Node.JS using the command line. This article explains how to install Node Version Manager and Node.JS on Ubuntu 20.04.
To complete this guide, make sure you have a fully-updated Vultr Ubuntu 20.04 server.
SSH to the server.
Install NVM.
SSH to the server.
Install NVM. The following command installs the latest version of NVM into $HOME/.nvm.
Edit your ~/.bashrc file:
Add the following lines at the end of the file:
Save and exit the file.
Reload your ~/.bashrc to activate NVM.
Verify NVM is installed with the -v parameter. It should return the version number as shown.
SSH to the server, and re-run the automatic script.
SSH to the server, then run the following to update from GitHub.
To install a specific version of Node.JS, specify the desired version number.
To install the latest release of node, use node, which is an alias for the latest version.
Test your node installation.
To learn more about how to use NVM, see the project documentation.
0 Comments
Be the first to comment and share your perspective with the community.