

Other Linux distributions based on either the Debian or Ubuntu versions above.Raspberry Pi using Debian (Raspbian) or Ubuntu, with armhf (ARM 32-bit hard-float, ARMv7) or arm64 (ARM 64-bit, ARMv8).Debian 8 (jessie), Debian 9 (stretch), Debian 10 (buster), Debian testing and Debian unstable.This guide will use the official Node.js-provided repository instead. Install Node.js and npm from the Node.js repository in Debian, Ubuntu and Linux MintĪn alternative way of installing Node.js and managing multiple active versions is using NVM, so you may want to check it out. This article will explain how to install Node.js and npm from the NodeSource repository as well as how to set up npm so you can use it to properly install Node.js packages globally in your user folder, so it doesn't mess with any permissions.

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 (and npm) is available in the official Debian, Ubuntu and Linux Mint repositories, but depending on the OS version you're using, they might have some old versions that need to be updated.

$ apt-get install -y nodejs Installing NodeJS 12.x in Debian, Ubuntu and Linux Mint Using Ubuntu $ apt-get install -y nodejs Installing NodeJS 14.x in Debian, Ubuntu and Linux Mint Using Ubuntu 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. # yum groupinstall 'Development Tools' Installing NodeJs in Debian, Ubuntu and Linux Mint Installing NodeJS 16.x in Debian, Ubuntu and Linux Mint 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. If you want to install NodeJS 12.x, add the following repository.

# curl -fsSL | sudo bash - Installing NodeJS 12.x on RHEL, CentOS and Fedora Installing NodeJS 14.x in RHEL, CentOS and Fedora As root
