Nvm linux11/20/2023 ![]() ![]() Node Version Manager is a tool that allows programmers to seamlessly switch between different versions of Node. nvmrc initialization file in your project root directory or any parent directory and add a node version number or any other flags or usage options that nvm understands, in it. ![]() To manually set a default node version to be used in any new shell, use the alias default: # nvm alias default 10.15.3 # nvm alias default system # nvm alias default 12.2.0 Note: You can view the path to the executable to where a specific node version was installed as follows: # nvm which 10.15.3 # nvm which 12.2.0 # nvm which system #check system-installed version of a node using “system” alias Run a node version as shown below (to exit, press ^C): # nvm use node #use default Using the following command you can use a node.js version in any new shell: # nvm use node #use default You can also check all installed version with the following command: # nvm ls You can list the versions available in the node to install a specific “ node” version and then install: # nvm ls-remote # nvm install 10.15.3 #or 8.16.0, 11.15.0 etc You can also use this command to update and install NVM: # nvm install node You can download the latest version of NVM using the following command. ![]() If you have successfully completed the installation process, you will see the nvm message in the output. In the next step, you should verify if the nvm has been installed on your system: # command -v nvm nvm The above auto-install script clones the nvm repository to ~/.nvm in your home directory and adds the required source commands to your shell startup scripts i.e ~/.bash_profile, ~/.zshrc, ~/.profile, or ~/.bashrc, depending on the shell program you are using. You can download the following auto-installation script to install NVM on Eldernode Linux using the command line tools: # curl -o- | bash To install nvm you must have CURL or WGET installed on the machine. Recommended Article: Tutorial Install VLC Media Player on Linux Debian 10 Tutorial How To Install NVM on Eldernode Linux ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |