Step 1 Adding Node. Source Repository. The latest version of Node. NPM is available from the official Node. Source Enterprise Linux, Fedora, Debian and Ubuntu binary distributions 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. Important Under RHEL 5 and Cent. OS 5, the Node. js packages are depend on the EPEL repository, so the script will check and give instructions if incase its not installed. FFYTnsb.png' alt='How To Install Deb File In Centos' title='How To Install Deb File In Centos' />To add the repository for the latest version of Node. LTS, use the following command as root. On RHEL, Cent. OS and Fedora curl silent location https rpm. Sample Output Installing the Node. Source Node. js 6. Inspecting system. Confirming el. 7 x. Lf o devnull https rpm. Downloading release setup RPM. L o tmptmp. 6. Qm. XPKx. PE https rpm. Installing release setup RPM. Qm. XPKx. PE. Cleaning up. Qm. XPKx. PE. Checking for existing installations. Run yum install y nodejs as root to install Node. You may also need development tools to build native addons. Alternatively for Node. For Node. js v. 7. On Debian, Ubuntu and Linux Mint sudo curl s. L https deb. nodesource. E bash. Sample Output Installing the Node. Source Node. js v. Populating apt get cache. Get 1 http security. In. Release 1. 02 k. B. Get 2 http us. In. Release 2. 47 k. B. Get 3 http security. Packages 1. 09 k. B. Get 4 http us. In. Release 1. 02 k. B. Get 5 http security. Packages 1. 12 k. B. Get 6 http security. Packages 5. 6. 5 k. B. Get 7 http security. Packages 5. 4. 3 k. B. Get 8 http us. In. Release 1. 02 k. B. Get 9 http security. Translation en 3. B. Get 1. 0 http us. Packages 2. 24 k. B. Get 1. 1 http us. Packages 2. 21 k. B. Get 1. 2 http us. Translation en 1. B. Get 1. 3 http us. Packages 1. 44 k. B. Get 1. 4 http us. Packages 1. 42 k. B. Get 1. 5 http us. Translation en 7. B. Get 1. 6 http us. Packages 4,6. 32 B. Get 1. 7 http us. Translation en 2,2. B. Fetched 1,8. 35 k. B in 7s 2. 61 k. Bs. Reading package lists. Done. Confirming yakkety is supported. Lf o devnull https deb. Release. Adding the Node. Source signing key to your keyring. Creating apt sources list file for the Node. Source Node. js v. Running apt get update for you. Get 1 http security. In. Release 1. 02 k. B. Get 2 http us. In. Release 2. 47 k. B. Get 3 http us. In. Release 1. 02 k. B. Get 4 https deb. In. Release 3,9. B. Get 5 http us. In. Release 1. 02 k. B. Get 6 https deb. Sources 7. B. Get 7 https deb. Packages 9. 61 B. Get 8 https deb. Packages 9. B. Fetched 5. 60 k. B in 2s 2. Bs. Reading package lists. Done. Run apt get install nodejs as root to install Node. Alternatively for Node. L https deb. nodesource. E bash. Step 2 Install Latest Nodejs and NPMNext, you can now install Nodejs and NPM on your system using the command below On RHEL, Cent. OS and Fedora yum y install nodejs npm. On Fedora 2. 2 versions. Sample Output. Loaded plugins fastestmirror, langpacks, product id, search disabled repos, subscription manager, versionlock. This system is not registered with Subscription Management. You can use subscription manager to register. Loading mirror speeds from cached hostfile. Resolving Dependencies. Running transaction check. Package nodejs. x. Package npm. x. 866. Finished Dependency Resolution. Dependencies Resolved. Package Arch Version Repository Size. M. npm x. M. Transaction Summary. Install 2 Packages. Total download size 7. M. Installed size 2. M. Downloading packages. MB 0. 0 0. 0 2. MB 0. Total 1. Bs 7. 0 MB 0. Running transaction check. Running transaction test. Transaction test succeeded. Running transaction. Installing 1 npm 3. Installing 1 nodejs 6. Verifying 1 nodejs 6. Verifying 1 npm 3. On Debian, Ubuntu and Linux Mint sudo apt get install y nodejs. Sample Output. Reading package lists. Of Mice And Men. Done. Building dependency tree. Reading state information. Done. The following NEW packages will be installed. Need to get 1. 0. MB of archives. After this operation, 5. MB of additional disk space will be used. Get 1 https deb. MB. Fetched 1. 0. MB in 4. Bs. Selecting previously unselected package nodejs. Reading database. Preparing to unpack. Unpacking nodejs 6. Setting up nodejs 6. Processing triggers for man db 2. 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. On RHEL, Cent. OS and Fedora. On Debian, Ubuntu and Linux Mint. Step 3 Testing Latest Nodejs and NPMTo 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, Cent. OS and Fedora node version. Cent. OS 7 Check Nodejs and NPM Version. On Debian, Ubuntu and Linux Mint nodejs version. Ubuntu 1. 5. 1. 0 Check Nodejs and NPM Version. That is it, Nodejs and NPM are now installed and ready for use on your system. 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. Hope this guide was helpful to you and always remember to stay connected to Tecmint.