Skip to content

HOWTO dev misc node_setup

steveoro edited this page Jan 16, 2021 · 1 revision

HOWTO: NodeJS 12+ and npm package manager setup

The npm JS package manager comes bundled with NodeJS.

Add the installation key, update the package list and get it from the added official repository:

$ sudo apt update
$ sudo apt -y install curl dirmngr apt-transport-https lsb-release ca-certificates
$ curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
$ sudo apt-get install gcc g++ make
$ sudo apt-get install -y nodejs

Verify the installation:

$ node -v
$ npm -v
Clone this wiki locally