How to install node js to raspberry pi zero

Roman Meshcheriakov
2 min readDec 17, 2020

1. Detect your system version

Run this command on raspberry pi terminal to detect the version that you need:

uname -m

2. Find your NodeJS version

Go to https://nodejs.org/en/download/ and find the latest version of node js for your system version

I have armv6l version and the latest version of node js for this system is v11.9.0

If you don’t seem your version on the home screen we have to go to All download options and surf versions from the new version to the old one until you find the current one

Copy the link address of the current package:

3. Download NodeJS

Run next commands on raspberry pi terminal:

cd ~wget {YOUR_LINK}

For armv6l:

cd ~wget https://nodejs.org/dist/v11.9.0/node-v11.9.0-linux-armv6l.tar.gz

5. Extract the Archive

Run next command on raspberry pi terminal:

tar -xzf {NAME_OF_ARCHIVE}

For armv6l:

tar -xzf node-v11.9.0-linux-armv6l.tar.gz

6. Copy NodeJS to /usr/local

cd node-v11.9.0-linux-armv6lsudo cp -R * /usr/local/

7. Check Installation

export PATH=$PATH:/usr/local/binnode -vnpm -v

Congratulations! Now you have NodeJS installed on your Raspberry Pi 🎉

--

--

No responses yet