Now, download, compile, and then install the latest version of Node by typing nvm install #.#.#. You can also see the version available to install with nvm by ls-remote. You can check the version of Node installed currently by typing nvm ls. Once everything is set up, installing the updated Node version is hardly any difficulty. If everything worked, then the command will output nvm. However, you can verify if the installation is successful by using the command -v nvm. If you want to install or update Node version manager, get the install script with cURL: curl -o- | bashįirst, close and open the terminal again. Sudo apt-get install build-essential checkinstall libssl-dev First, run an update to get the packages using these commands: sudo apt-get update For this, you need a C++ compiler, the build-essential and libssl-dev packages.
NVM ( Node Version Manager), as mentioned earlier, is the best way to update Node.
However, if you’re unable to go with the Node Version manager method, then you can update either via binary packages or package managers. We recommend method one because of its simplicity. We’ve listed the three common and most effective ways to update node on the Linux operating system. You can do this by writing node -v in the command prompt.ģ Methods of Updating Node.js on Linux Machines We’ll be covering Linux, macOS, and Windows-based machines.īefore getting started, determine the Node.js version you have. In the following article, we’ve mentioned the easiest yet the most effective methods of installing the newest Node version. So, you’ll have no problems in getting the most recent Node.js version. There are numerous methods one can use to update Node to the latest version on different operating systems. The updates are not only limited to just one version branch they are spread among all of them. After almost every two weeks, there is some update or the other to boost both security and stability. Just like a majority of other open-source environment, Node.js has become quite a fast-evolving project.