Warning: Trying to access array offset on null in /var/www/html/correiarodrigues/wp-content/themes/splitvcard/inc/template-tags.php on line 251

Warning: Trying to access array offset on null in /var/www/html/correiarodrigues/wp-content/themes/splitvcard/inc/template-tags.php on line 251
Update NodeJS and NPM – Renée Maksoud
Warning: Trying to access array offset on null in /var/www/html/correiarodrigues/wp-content/themes/splitvcard/functions.php on line 200

Warning: Trying to access array offset on null in /var/www/html/correiarodrigues/wp-content/themes/splitvcard/inc/template-tags.php on line 264

The Blog

Update NodeJS and NPM


Checking actual versions

npm -v
node -v
nodejs -v
nvm --version

Removing old versions

sudo apt-get remove nodejs npm node
sudo apt-get purge nodejs
sudo apt-get autoremove
sudo apt-get update

Installing NVM package management for Node version 17.0.1 and NPM version 8.1.0 installation

sudo apt install curl
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash

Close and reopen your terminal to start using NVM

nvm install node

Now, you can run the version check again

npm -v
nodejs -v
node -v
nvm --version

We need to see those followed responses

8.1.0
-bash: /usr/bin/nodejs: No such file or directory
v17.0.1
0.39.0

Leave a comment


Warning: Trying to access array offset on null in /var/www/html/correiarodrigues/wp-content/themes/splitvcard/inc/template-tags.php on line 283