Forked from mandrean/install-nodejs-lts-raspberry-pi-zero-w-armv6
Created
November 7, 2024 17:45
-
-
Save ozturkkl/9896a88327639fe6106072dcfa93702d to your computer and use it in GitHub Desktop.
Install NodeJS LTS on Raspberry Pi Zero W (ARMv6)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# update system | |
$ sudo apt update && sudo apt upgrade | |
# uninstall old node (v10?) | |
$ sudo apt remove nodejs npm -y | |
# install nvm | |
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash | |
# use 'unofficial builds' in nvm | |
$ echo "export NVM_NODEJS_ORG_MIRROR=https://unofficial-builds.nodejs.org/download/release" >> ~/.bashrc | |
# reload bashrc | |
$ source ~/.bashrc | |
# install latest LTS | |
$ nvm install --lts | |
$ nvm use --lts | |
# verify versions | |
$ node -v | |
$ npm -v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment