DEV Community

Cover image for Installing Node 12 and higher on a Raspberry Pi Zero with nvm
PatrickWeaver
PatrickWeaver

Posted on • Edited on

10 3

Installing Node 12 and higher on a Raspberry Pi Zero with nvm

I usually use nvm to manage node.js versions for projects, but there are not official binaries for the ARM V6 chip in a Raspberry Pi Zero for node versions 12 and higher. The source is still available, and so if you try nvm install 14.17.4 nvm will attempt to compile from source, which on a Raspberry Pi zero will take a long, long, long time (and probably fail).

Fortunately node.js provides "unofficial builds" of newer node versions for ARM v6 at unofficial-builds.nodejs.org.

You can use these binaries with nvm by providing a url to use instead of the default node.js binaries url:

nodejs 14

NVM_NODEJS_ORG_MIRROR=https://unofficial-builds.nodejs.org/download/release nvm install 14
Enter fullscreen mode Exit fullscreen mode

nodejs 16

NVM_NODEJS_ORG_MIRROR=https://unofficial-builds.nodejs.org/download/release nvm install 16
Enter fullscreen mode Exit fullscreen mode

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

Top comments (3)

Collapse
 
jazzbrown1 profile image
Jazz Brown

Hey thanks. This was really helpful!

Collapse
 
xaviertourenq profile image
Xavier Tourenq

thank you!!

Collapse
 
geokal profile image
Giorgos Kalpaktsoglou

Gr8 !! thanks

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay