This repo contains one-line install scripts for installing Node.js in a Linux environment. It's based on node-pi-zero which is forked from this repo
Each command is re-runnable, meaning you can upgrade and downgrade versions of Node easily.
Open the README file that corresponds to your architecture (e.g. README-armv6l.md for Raspberry Pi Zero) and look for the version of node you wish to install. Open a terminal and copy & paste the command in. Node will be installed, and you can confirm this by running node -v and npm -v.
Should you need to reinstall, upgrade or downgrade, you can simply run these commands again.
If a version of node you're after isn't listed here, you can add it like so:
- Make sure you've got node installed
- Fork this repo, then clone your fork
- Run
npm installto install dependencies - Install
gulpwithnpm install -g gulp - Run
gulp generate - Commit your changes, then open a PR.
You should always be careful when running bash scripts obtained by wget! Be sure to view the source of the script before executing it!