
You can install a specific version by nvm with install subcommand. Install a version of Node.jsįirst, you can get the list of available versions by list-remote or ls-remote subcommand. We want to choose some essential subcommands and explain them. Nvm has a lot of subcommands such as install, use, uninstall, and more. Now you need to close and reopen the terminal to load nvm, then check and verify your installation nvm -version # 0.38.0 "$NVM_DIR/nvm.sh" # This loads nvm bash_completion & \. export NVM_DIR="$HOME/.nvm" # This loads nvm & \.

curl -o- | bashĪfter that, the installer will clone the nvm repository into ~/.nvm/ directory and you should add some lines below at the end of ~/.bashrc file to load nvm. So, you can use curl it to download and then run it with bash with the command below in the terminal. When I wrote this article, the latest version of the nvm installer was 0.38.0. There’s some way to install or update nvm on your machine, but I prefer to install nvm with the installer script. Photo by Ian Dooley on Unsplash Install nvm on Ubuntu and Mac OS
