GNU/Linux >> Linux Esercitazione >  >> Ubuntu

Come aggiornare Node.js da 4.2 a 6.11.0 su Ubuntu 16.04?

Attualmente, nella mia macchina Ubuntu 16.04, la versione installata di Node.Js è 4.2. Voglio aggiornarlo all'attuale versione LTS 6.11.0.
Devo eseguire i seguenti codici per questa attività:

sudo npm install -g n

e poi

sudo n latest

Risposta accettata:

Questi comandi hanno fatto il lavoro per me:

sudo npm cache clean -f
sudo npm install -g n
sudo n 6.11.0

Ubuntu
  1. Come eseguire l'aggiornamento a Ubuntu 20.04

  2. Come eseguire l'aggiornamento da Ubuntu 16.04 a Ubuntu 18.04

  3. Come aggiornare Ubuntu a 20.10

  4. Come eseguire l'aggiornamento a Ubuntu 15.10 da Ubuntu 15.04

  5. Come aggiornare a Debian 11 da Debian 10

Come aggiornare da Ubuntu 20.04 a Ubuntu 22.04

Come eseguire l'aggiornamento a Ubuntu 16.04 da Ubuntu 14.04 e 15.10

Come eseguire l'aggiornamento a Ubuntu 21.10 Impish Indri Beta dal 21.04

Come eseguire l'aggiornamento a Ubuntu 20.04 da Ubuntu 18.04 e 19.10

Come aggiornare da 12.04 a 12.10 utilizzando Cd?

Come aggiornare il server Ubuntu a 20.04 dal 18.04