![]() ![]() For example nvm run v16.14.0 app.js Step 6 – Remove Unused Node.js Version NVM provides you an option to use a node.js version for running any application. If you have multiple node.js applications on your system and want to run each with a specific version of node.js. Step 5 – Run Application with Specific Version Now verify the current active version of node.js node -version The below command will set 17.5.0 as the default Node.js version. ![]() You can change the default Node.js version. You can see that Node.js version v16.14.0 is set as the default version. You will see a long list of available versions. Now find out the available version of Node.js to install. CentOS, Fedora and Redhat systems: source ~/.bashrcĪt this point, you have installed nvm on your system for the current user.Debian based systems: source ~/.profile.It will set the required environment variables to use nvm on the system. Reload the system environment using this command.Next, run the following command to configure nvm on your system for the current logged user.First, make sure you have curl installed on your system: sudo apt update & sudo apt install curl -y. ![]() You can install nvm using a shell script provided by the nvm team. NVM is a command-line utility to install and manage Node.js versions for specific users. Windows users can visit our other tutorial to install Nodejs on Windows system. The default NVM is installed under the current user’s home directory, So nvm installation with one user will not be accessible to another user. ![]() This tutorial will help you to Install and Manage Node.js using NVM. You can also install a specific Node.js version or multiple Node.js versions on the same system using nvm and use the required version for the application. NVM provides an option for the easy installation of Node.js. NVM is known as Node Version Manager, similarly to RVM (Ruby Version Manager) for Ruby language. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |