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 upgradeVerify node isn't installed yet. It should print 'command not found'.
node —versionSet up the apt-get repo source
curl -sL https://deb.nodesource.com/setup | sudo bash -Install Node itself
sudo apt-get install nodejsI 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 wellThat's it!
Magnifique!
ResponderEliminar