Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the ad-inserter domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/vhosts/blog.webeats.it/httpdocs/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the cookie-law-info domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/vhosts/blog.webeats.it/httpdocs/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/vhosts/blog.webeats.it/httpdocs/wp-includes/functions.php on line 6114
Aggiornare Node.js via NPM - Blog WebEats

Una breve guida per aggiornare Node.js sul nostro sistema tramite NPM con pochi comandi

Prima di tutto vediamo quale versione di Node.js è presente al momento sul nostro sistema

sudo npm -v

Ora procediamo con l’aggiornamento lanciando i seguenti comandi. Serviranno i permessi di amministratore (root) ovviamente per effettuare l’aggiornamento a livello globale nel sistema, quindi usiamo sudo

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

Bene dopo l’update, ridate il comando npm -v per vedere se la versione di Node.js è stata aggiornata

sudo npm -v

Aggiornare Node.js

Ricordiamo che con NVM possiamo gestire diverse versioni di NPM. Vedi la documentazione ufficiale