Skip to content

Instantly share code, notes, and snippets.

@hitesh83
Created May 26, 2017 06:00
Show Gist options
  • Save hitesh83/062b53a33fff682f364367885b8bb0c2 to your computer and use it in GitHub Desktop.
Save hitesh83/062b53a33fff682f364367885b8bb0c2 to your computer and use it in GitHub Desktop.
NPM and NodeJS update on RPI
pi@raspberrypi:~ $ node -v
v0.10.29
pi@raspberrypi:~ $ sudo su -
root@raspberrypi:~ # apt-get remove nodered -y
root@raspberrypi:~ # apt-get remove nodejs nodejs-legacy -y
root@raspberrypi:~ # apt-get remove npm -y # if you installed npm
root@raspberrypi:~ # curl -sL https://deb.nodesource.com/setup_5.x | sudo bash -
root@raspberrypi:~ # apt-get install nodejs -y
root@raspberrypi:~ # node -v
v5.9.0
root@raspberrypi:~ # npm -v
3.7.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment