viernes, 2 de octubre de 2015

Install Node on the Raspberry Pi in 5 minutes

Install Node on the Raspberry Pi in 5 minutes

Don’t follow the old instructions. These new ones work with current Raspian as of May 28th 2015. These instructions will get you node v0.10. I don’t recommend moving to v0.12 just yet as some parts are still in flux

Update the OS

sudo apt-get update sudo apt-get upgrade
Verify node isn't installed yet. It should print 'command not found'.
node —version
Set up the apt-get repo source
curl -sL https://deb.nodesource.com/setup | sudo bash -
Install Node itself
sudo apt-get install nodejs
I then had to log out and log back in to get the path right.
node —version // should print version 0.10.38 or similar
npm —version should print 1.4.28 or similar
sudo node —version should work as well
That's it!

1 comentario: