Raspberry Pi NodeJs install script

The following script can be used for installing a Node version on a Raspberry Pi and other Linux distros also if you want to (Open-mouthed smile). The script makes one assumption: the NodeJs installation file ends with .tar.gz. It does not support files ending .tar.xz.

You use it as follows:

  • Goto https://nodejs.org/dist
  • Choose the version you want to install, i.e. v5.2.0
  • Choose the node installation file you want to install on your Raspberry, i.e. node-v5.2.0-linux-armv6l.tar.gz
  • Run the script like this: install-latest-node.sh v5.2.0 node-v5.2.0-linux-armv6l.tar.gz

This is the script:

I hope you find this script usefull.