Dup Goto 📝

install-on-ubuntu

PT2/lang/js/node ubuntu node nodejs 07-31 13:46:48
To Pop
18 lines, 68 words, 591 chars Monday 2023-07-31 13:46:48

See here

Nodesource PPA

This is the option for a recent nodejs installed systemwide

cd /tmp
curl -sL https://deb.nodesource.com/setup_18.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt-get update
sudo apt install nodejs

Node Version Manager

This is per-user (node no sudo)

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash

Though I tend to move the additions to .bashrc into a separate script to keep things organised.