Sunday, October 02, 2022

How to Update Nodejs & npm on a Raspberry Pi 4

How to Update Nodejs & npm on a Raspberry Pi 4

🔥 Save unlimited web pages along with a full PDF snapshot of each page.
Unlock Premium →

sudo apt update
sudo apt full-upgrade

After running the update and upgrade commands, the system has comepleted the task

After running the update and upgrade commands
node -v
npm -v

Tells me what version of nodejs (v10.19.0) and npm (5.8.0) I have.

The current version of Nodejs & npm on my Raspberry Pi

Nodejs.org Homepage with two of it's latest versions.

Nodejs homepage with current versions available for download

a GitHub website running v6.14.5 npm

The most current version of npm is v6.14.5
sudo apt remove node

Ran sudo apt remove node, and couldn't find node

Removing node from Raspberry Pi
sudo apt remove nodejs

Ran sudo apt remove nodejs from Raspberry Pi 4.

Removing Nodejs from the Raspberry Pi
sudo apt install nodejs

Ran sudo apt install nodejs in the terminal

Installing Nodejs to our Raspberry Pi
nodejs -v
node -v
npm -v

Now having version 6.14.5 npm and nodejs v14.3.0

The newest versions of Nodejs & npm installed on my Raspberry Pi.

Source: https://medium.com/@thedyslexiccoder/how-to-update-nodejs-npm-on-a-raspberry-pi-4-da75cad4148c
This web page was saved on Saturday, Oct 01 2022.

Upgrade to Premium Plan

✔ Save unlimited bookmarks.

✔ Get a complete PDF copy of each web page

✔ Save PDFs, DOCX files, images and Excel sheets as email attachments.

✔ Get priority support and access to latest features.

Upgrade now →

No comments: