Stay with the herd! How to Install a Specific Node Version in Ubuntu Linuxįigure out which Node.js version you want. If you run into issues and you're using the same Node version as everyone else, it's easier for you to get help. Like a gazelle being chased by a lion, there's safety in numbers. As a result, testing is performed against that specific Node version and you're less likely to introduce new issues by offroading with a different version. If you're running a version of Node.js that's been specifically called out by an application's developers, you can be sure that those same developers are using it too. In a lot of cases, you can avoid headache simply by making sure the Node.js version you're using is supported by the Node application you're trying to run. This is because your Node application can have several Node-version-specific binary dependencies. When doing Node development, or indeed just running a Node application, a specific Node.js version may be required. Why is a Specific Node Version Necessary? (Don't think of installing a specific version as installing an "older" version, think of it as installing a "long-term support" (LTS) version!) Here is how to install a specific Node version in Ubuntu Linux. I hope this guide was helpful to you and always remember to stay connected to Tecmint.Sometimes you need to use a specific version of Node, even if that version may be "older". I believe these were easy and simple steps to follow but in case of problems you faced, you can let us know and we find ways of helping you. That is it, Nodejs and NPM are now installed and ready for use on your system. On Debian, Ubuntu and Linux Mint $ nodejs -version
To have a simple test of nodejs and NPM, you can just check the versions installed on your system by using the following commands: On RHEL, CentOS, and Fedora # node -version
$ sudo apt-get install -y build-essential Optional: There are development tools such as gcc-c++ and make that you need to have on your system, in order to build native addons from npm. Installing NodeJS 10.x in Debian, Ubuntu and Linux Mint - On Ubuntu and Linux Mint. Installing NodeJS 12.x in Debian, Ubuntu and Linux Mint - On Ubuntu and Linux Mint. Installing NodeJS 14.x in Debian, Ubuntu and Linux Mint - On Ubuntu and Linux Mint. The latest version of Node.js and NPM is also available from the official NodeSource Enterprise Linux repository, which is maintained by the Nodejs website and you will need to add it to your system to be able to install the latest Nodejs and NPM packages. Install Development Tools in CentOS How to Install Node.js 14 in Debian, Ubuntu and Linux Mint Next, you can now install Nodejs and NPM on your system using the command below: # yum -y install nodejs If you want to install NodeJS 10.x, add the following repository.
Installing NodeJS 10.x on RHEL, CentOS and Fedora If you want to install NodeJS 12.x, add the following repository. Installing NodeJS 12.x on RHEL, CentOS and Fedora To add the repository for the latest version of Node.js 14.x, use the following command as root or non-root.