Skip to content

Instantly share code, notes, and snippets.

@salmanfarisvp
Last active September 13, 2021 08:05
Show Gist options
  • Save salmanfarisvp/2b8ee95089b1635baa84d891e4e92459 to your computer and use it in GitHub Desktop.
Save salmanfarisvp/2b8ee95089b1635baa84d891e4e92459 to your computer and use it in GitHub Desktop.
NodeJS Update on Raspberry Pi

Step 1: Download Latest NodeJS verison:

curl -o node-v14.17.6-linux-armv7l.tar.xz https://nodejs.org/dist/v14.17.6/node-v14.17.6-linux-armv7l.tar.xz

Step 2: Extract the files by using the tar command:

tar -xvf node-v14.17.6-linux-armv7l.tar.x

Step 3: sudo cp -r node-v14.17.6-linux-armv7l/* /usr/local/sudo

sudo cp -r node-v14.17.6-linux-armv7l/* /usr/local/sudo

Step 4: Update npm

sudo npm install -g npm@latest

Step 5: Update NodeRED

bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment