Replying to Avatar AsaiToshiya

Raspberry Pi Zero の Node.js を最新バージョンに

ダウンロードと解凍

```

wget https://unofficial-builds.nodejs.org/download/release/v18.14.0/node-v18.14.0-linux-armv6l.tar.xz

tar xvfJ node-v18.14.0-linux-armv6l.tar.xz

```

インストールとリブート

```

sudo cp -R node-v18.14.0-linux-armv6l/* /usr/local

rm -rf node-*

sudo reboot

```

バージョンを確認

```

node -v && npm -v

```

非公式ビルド: https://unofficial-builds.nodejs.org/download/

参考: https://hassancorrigan.com/blog/install-nodejs-on-a-raspberry-pi-zero/

#NodeJS #RaspberryPi

64-bit

```

wget https://nodejs.org/dist/v22.11.0/node-v22.11.0-linux-arm64.tar.xz

tar xvfJ node-v22.11.0-linux-arm64.tar.xz

sudo cp -R node-v22.11.0-linux-arm64/* /usr/local

rm -rf node-*

sudo reboot

```

#NodeJS #RaspberryPi

Reply to this note

Please Login to reply.

Discussion

No replies yet.