Websites | Photography | Video Editing | 3D Animations

From the Blog

May
24

First ssh in to pi and cd in to Downloads directory.

$ cd ~/Downloads

Next you need to download the nodejs tar. Checkout the version you desire http://nodejs.org/dist/ make sure you download the the version with the last string ending ‘linux-armv6l.tar.gz’. Raspberry Pi Zero support only ARMv6.

$ wget http://nodejs.org/dist/v6.10.3/node-v6.10.3-linux-armv6l.tar.gz

Once downloaded cd in to usr/local

cd /usr/local

Extract tar here

sudo tar xzvf ~/Downloads/node-v6.10.3-linux-armv6l.tar.gz --strip=1

And finally remove default npm, node and nodejs.

sudo apt-get remove --purge npm node nodejs

Now check the version

$node -v && npm -v