Skip to content

Installing NodeJS

To be able to run Cozy connectors and gather all your data, cozy-stack needs NodeJS version 16. This documents gives instructions to instal NodeJS 16.

You can refer to NodeJS installation documentation or simply follow the instructions below.

Add NodeJS 16 package repository to your system:

curl -fsSL | sudo gpg --dearmor -o "$KEYRING"
echo "deb [signed-by=$KEYRING] nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list >/dev/null
cat <<EOF | sudo tee /etc/apt/preferences.d/nodejs.pref > /dev/null
Package: *
Pin: origin
Pin-Priority: 700

Install NodeJS:

sudo apt update && sudo apt install -y nodejs

Verify that NodeJS 16 is properly installed

nodejs --version

This command should give you nodejs installed version. For example: