Pi Zero W read GPIO with nodejs 10

The Pi Zero W uses the arm6l architecture.

For node v10 the zip file can be found in this directory, I would imagine future versions would be follow a similar directory structure.
http://nodejs.org/dist/latest-v10.x/

In the terminal move to a directory you want to download the gzip file to. I use ~/dev/node

cd ~/dev/node
wget http://nodejs.org/dist/latest-v10.x/node-v10.1.0-linux-armv6l.tar.gz

Now unzip the files into the /usr/local directory:
cd /usr/local
sudo tar xvfz ~/dev/node/ node-v10.1.0-linux-armv6l.tar.gz –strip=1

Test its all working with:
node -v

pi@raspberrypi:/usr/local $ node -v
v10.1.0

References
https://blog.miniarray.com/installing-node-js-on-a-raspberry-pi-zero-21a1522db2bb

Leave a Reply

Your email address will not be published. Required fields are marked *