One of the things I’ve noticed while trying to set up Node.js on my Raspberry Pi is that every tutorial has a different way of reaching the same goal. The worst part of that is, most of the walk throughs end up having you install out of date versions NodeJS and NPM.
Here’s what I found in my troubleshooting.
To install NodeJs you have to make sure you have the latest updates on Raspbian (or whichever distribution you are using).
sudo apt-get update
sudo apt-get upgrade
Then we’ll install NodeJs.
sudo dpkg -i node_latest_armhf.deb
Then run the version check command to make sure the latest version of Node has been installed.
To get them to run, nothing else worked for me other than these commands.
sudo npm install --global learnyounode
Yes, that’s it. To install the other programs just rinse and repeat.
sudo npm install --global git-it
// Thank you @martinheidegger for adding this post to the nodeschool wiki, check it out at https://github.com/nodeschool/discussions/wiki/Installation-suggestions
Here are two references that helped me find my solutions, and also provide some interesting additional material.