NodeJs/Express on Raspberry Pi Zero W
Table of contents
The armv6l architecture is deprecated and you therefore cannot get the latest version. However, it is still possible to install NodeJs
You can find a list of distributions here: https://nodejs.org/dist/
Step 1: Download the archive
pi@raspberrypi:~ $ curl -o node-v11.15.0-linux-armv6l.tar.gz https://nodejs.org/dist/latest-v11.x/node-v11.15.0-linux-armv6l.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 18.3M 100 18.3M 0 0 2002k 0 0:00:09 0:00:09 --:--:-- 2294k
pi@raspberrypi:~ $
Step 2: Install Manually
# extract the contents locally
tar -xzf node-v11.15.0-linux-armv6l.tar.gz
# transfer the content into the corresponding directories in /usr/local
sudo cp -r node-v11.15.0-linux-armv6l/* /usr/local/
# verify
node -v
npm -v
# I had node v11.15.0 and npm 6.7.0
Install Express
With NodeJs and NPM installed, install ExpressJs globally
sudo npm install express -g