https://github.com/sdesalas/node-pi-zero
Node installation on the Raspberry Pi Zero (Including v12+ Experimental Builds)
https://github.com/sdesalas/node-pi-zero
armv6 node-pi nodejs pi-zero raspberry-pi
Last synced: about 1 month ago
JSON representation
Node installation on the Raspberry Pi Zero (Including v12+ Experimental Builds)
- Host: GitHub
- URL: https://github.com/sdesalas/node-pi-zero
- Owner: sdesalas
- Created: 2016-09-16T13:46:41.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-03-08T07:59:11.000Z (about 1 year ago)
- Last Synced: 2024-10-20T07:32:56.679Z (7 months ago)
- Topics: armv6, node-pi, nodejs, pi-zero, raspberry-pi
- Language: Shell
- Homepage:
- Size: 772 KB
- Stars: 487
- Watchers: 20
- Forks: 59
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

# node-pi-zero
Use the commands below to install node in the Raspberry Pi Zero.
They are re-runnable so you can upgrade or downgrade just by running the command for each version.
## Node in v12+: Experimental
As of Node v12, the [Node.js project](https://github.com/nodejs/node/) has stopped supporting the Raspberry Pi Zero's [ARM v6 chip](https://en.wikipedia.org/wiki/ARM11) and is now [classing it as "Experimental"](https://github.com/nodejs/build/issues/1677), so you can no longer download a tarball binary directly from the [main project](https://github.com/nodejs/node). The install scripts here are using the [Unofficial Builds Project](https://github.com/nodejs/unofficial-builds/) (run by the same team).
"Experimental" status for Node.js is defined as:
> Experimental: May not compile or test suite may not pass. The core team does not create releases for these platforms. Test failures on experimental platforms do not block releases. Contributions to improve support for these platforms are welcome.
For more info:
https://raspberrypi.stackexchange.com/questions/111130/how-to-install-nodejs-v12-on-raspi-zero-armv6-not-available-for-download-anymor
## v4.0.0
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v4.0.0.sh | bash
```## v4.4.1
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v4.4.1.sh | bash
```## v4.7.0
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v4.7.0.sh | bash
```## v4.8.7
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v4.8.7.sh | bash
```## v5.0.0
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v5.0.0.sh | bash
```## v5.12.0
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v5.12.0.sh | bash
```## v6.0.0
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v6.0.0.sh | bash
```## v6.4.0
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v6.4.0.sh | bash
```## v6.9.1
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v6.9.1.sh | bash
```## v6.11.3
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v6.11.3.sh | bash
```## v6.13.1
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v6.13.1.sh | bash
```## v7.2.1
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v7.2.1.sh | bash
```## v7.7.1
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v7.7.1.sh | bash
```## v8.4.0
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v8.4.0.sh | bash
```## v8.5.0
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v8.5.0.sh | bash
```## v8.6.0
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v8.6.0.sh | bash
```## v8.7.0
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v8.7.0.sh | bash
```## v8.8.0
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v8.8.0.sh | bash
```## v8.8.1
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v8.8.1.sh | bash
```## v8.9.0
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v8.9.0.sh | bash
```## v8.10.0
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v8.10.0.sh | bash
```## v8.17.0 (Experimental)
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v8.17.0.sh | bash
```## v9.0.0
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v9.0.0.sh | bash
```## v9.5.0
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v9.5.0.sh | bash
```## v9.8.0
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v9.8.0.sh | bash
```## v9.11.2
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v9.11.2.sh | bash
```## v10.0.0
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v10.0.0.sh | bash
```## v10.6.0
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v10.6.0.sh | bash
```## v10.15.0
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v10.15.0.sh | bash
```## v10.24.1 (Experimental)
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v10.24.1.sh | bash
```## v11.0.0
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v11.0.0.sh | bash
```## v11.5.0
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v11.5.0.sh | bash
```## v11.15.0 (Experimental)
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v11.15.0.sh | bash
```## v12.0.0 (Experimental)
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v12.0.0.sh | bash
```## v12.7.0 (Experimental)
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v12.7.0.sh | bash
```## v12.13.0 (Experimental)
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v12.13.0.sh | bash
```## v12.21.0 (Experimental)
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v12.21.0.sh | bash
```## v12.22.1 (Experimental)
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v12.22.1.sh | bash
```## v13.0.0 (Experimental)
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v13.0.0.sh | bash
```## v13.6.0 (Experimental)
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v13.6.0.sh | bash
```## v13.14.0 (Experimental)
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v13.14.0.sh | bash
```## v14.0.0 (Experimental)
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v14.0.0.sh | bash
```## v14.5.0 (Experimental)
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v14.5.0.sh | bash
```## v14.10.0 (Experimental)
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v14.10.0.sh | bash
```## v14.15.0 (Experimental)
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v14.15.0.sh | bash
```## v14.16.0 (Experimental)
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v14.16.0.sh | bash
```## v14.17.1 (Experimental)
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v14.17.1.sh | bash
```## v15.0.0 (Experimental)
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v15.0.0.sh | bash
```## v15.6.0 (Experimental)
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v15.6.0.sh | bash
```## v15.11.0 (Experimental)
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v15.11.0.sh | bash
```## v15.14.0 (Experimental)
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v15.14.0.sh | bash
```## v16.1.0 (Experimental)
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v16.1.0.sh | bash
```## v16.3.0 (Experimental)
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v16.3.0.sh | bash
```## v16.11.1 (Experimental)
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v16.11.1.sh | bash
```## v16.20.2 (Experimental)
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v16.20.2.sh | bash
```## v17.0.0 (Experimental)
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v17.0.0.sh | bash
```## v17.9.1 (Experimental)
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v17.9.1.sh | bash
```## v18.0.0 (Experimental)
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v18.0.0.sh | bash
```## v18.10.0 (Experimental)
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v18.10.0.sh | bash
```## v18.19.1 (Experimental)
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v18.19.1.sh | bash
```## v19.0.0 (Experimental)
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v19.0.0.sh | bash
```## v19.9.0 (Experimental)
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v19.9.0.sh | bash
```## v20.0.0 (Experimental)
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v20.0.0.sh | bash
```## v20.8.0 (Experimental)
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v20.8.0.sh | bash
```## v20.11.1 (Experimental)
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v20.11.1.sh | bash
```## v21.0.0 (Experimental)
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v21.0.0.sh | bash
```## v21.6.2 (Experimental)
```sh
$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v21.6.2.sh | bash
```## Using global npm modules? (ie mocha, eslint, etc)
Add the following to the end of your `~/.profile` file:
```sh
# Add support for node CLI tools
export PATH=$PATH:/opt/nodejs/bin
```And remember, [friends dont let friends pipe to sh](https://www.seancassidy.me/dont-pipe-to-your-shell.html).