

The Node repository does not support ARMv6, so Raspberry Pi 1 is not supported.ġ. 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. Node.js - install selected (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.

check Node.js and npm versions: $ node -v set installed Node.js as used/active one (this command can be executed on instaled versions before): nvm use v16.0.0Įxample output: Now using node v16.0.0 (npm v7.10.0)ĥ.

install selected Node.js version: nvm install v16.0.0Įxample output: Downloading and installing node v16.0.0. check avaialble Node.js versions: nvm ls-remoteģ. install nvm command: curl -o- | bashġ.3 reload enviroment variables to have access to nvm command (or you can just restart your Linux): source ~/.bashrcĢ. install curl command only if you don't have it instelled yet. we need to download and install nvm script that let's to switch Node.js versionsġ.1. Node: using below instruction we are able to switch between existing Node.js versions ( npm versions too) - just go to step 4 in the below instruction.ġ. Warning: node will be installed per specific user only! In this short article, we would like to show how to install desired version of the Node.js or npm under Linux.
