-
Notifications
You must be signed in to change notification settings - Fork 2
01 Basic Installs
Alcides edited this page Sep 30, 2022
·
11 revisions
01.1 Install Node.js stack using default Ubuntu software repositories
-
Install Node.js:
- Install:
sudo apt install nodejs
- Check Version:
node -v
(for Ubuntu 22.04 LTS the output isv12.22.9
just for example).
- Install:
-
Install NPM (Node.js Package Manager):
- Install:
sudo apt install npm
- Check Version:
npm version
(for Ubuntu 22.04 LTS the output is following).
- Install:
01.1 Install Node.js stack using SNAP
-
Remove Node.js:
- Remove current install:
sudo apt remove nodejs
- Remove current install:
-
Remove NPM (Node.js Package Manager):
- Remove current install:
sudo apt remove npm
- Remove files:
sudo apt autoremove
- Remove current install:
-
Install Node.js:
- Install:
snap install node --classic
- Check Version:
node -v
(for Ubuntu 22.04 LTS the output isv16.17.1
just for example). - Check Version:
npm version
(for Ubuntu 22.04 LTS the output is following).
- Install: