Skip to content

Instantly share code, notes, and snippets.

Last active September 8, 2023 21:50
  • Star 48 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Steps to install nodejs on Raspberry Pi B+ (armv6)

Steps to install nodejs v6.2 on Raspberry Pi B+ (armv6)

cd ~
tar -xzf node-v6.2.1-linux-armv6l.tar.gz
node-v6.2.1-linux-armv6l/bin/node -v

The last command should print v6.2.1.

Now you can copy it to /usr/local

cd node-v6.2.1-linux-armv6l/
sudo cp -R * /usr/local/

For testing add /usr/local/bin to your path

export PATH=$PATH:/usr/local/bin
node -v
npm -v

This should print 6.2.1 and 3.9.3 for the versions of nodejs and npm. If you need a different version, just pick the one you like from the downloads.

Don't forget to add the PATH to your .bashrc to make it permanent.

To find the correct architecture, you can type uname -m


Copy link

Is it possible to get the version 14+ running on arm6?

Copy link

PaulMerk commented Oct 6, 2021

working on Raspi B3:

Copy link

For Pi Zero W with arm6l this v16.17.0 worked for me.

Copy link

even 19.1.0 worked.

Copy link

philipostli commented May 5, 2023

Per @dkossman 's comment, you can use that repository with nvm to easily manage installed nodejs versions. First you need to set repo variable with export NVM_NODEJS_ORG_MIRROR= Then, you can run nvm ls-remote to see available versions and nvm install v15.2.1 to install nodejs version 15.2.1.

Thank you @sa1d ! This definately solved a big issue. Those old raspberries are no longer supported by Node. Using this method helped nvm quickly install the right version on my Pi B+. Now running latest version of Node.js.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment