How To Install Node.js & NPM on Ubuntu

Ubuntu:20.04

Node.js:v10.19.0

Installation

更新套件 index

sudo apt update

安裝 Node.js

; Install
sudo apt install nodejs

; Check version
node -v

安裝 NPM

; Install
sudo apt install npm

; Check version
npm -v