Seleziona una pagina

Node.js è un runtime JavaScript basato sul motore JavaScript V8 di Chrome. Per installare Node.js 12.x e 10.x LTS su Ubuntu o Debian si deve aggiungiere il repository di distribuzioni binarie NodeSource:

Per Node.js 12:

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 -

Per Node.js 10:

sudo apt update
sudo apt -y install curl dirmngr apt-transport-https lsb-release ca-certificates
curl -sL https://deb.nodesource.com/setup_10.x | sudo bash

Come installare Node.js 10 o 12 LTS su Ubuntu o Debian

Una volta aggiunta la repository che ci interessa, diamo i seguenti comandi per avviare l’installazione:

sudo apt update
sudo apt -y install gcc g++ make
sudo apt -y install nodejs

A questo punto installiamo Yarn:

curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn

e con questo comando possiamo verificare la versione installata:

node -v

Questo é tutto su come installare Node.js 10 o 12 LTS su Ubuntu o Debian. Abbiao installato node.js nel nostro sistema.

CURIOSITA`:  Come Configurare Trunk con Messagenet in FreePBX