Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

186 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NodeJs-Raspberry-Pi

Latest NodeJS Install:

This is a simple shell script that will install NodeJs v13.x... or at least the "Latest version" of NodeJs available to your raspberry pi on every all types of raspberry pis (zero|1|2|3|4) This also happens to work on a Beaglebone, Nvidia TX2, and other ARM6, ARM7, and ARM64 linux computers.

First, you will need to install the latest version of NodeJs on your pi by going into your Raspberry Pi zero|1|2|3's terminal, and running:

wget -O - https://raw.githubusercontent.com/audstanley/NodeJs-Raspberry-Pi/master/Install-Node.sh | sudo bash;
node -v;

Specific Version of NodeJs:

Once you have run the initial installer, you can install different versions at any time by opening a new terminal and typing:

sudo node-install -v 4.9.1; # if you want to be specific

or

sudo node-install -v 4;
# then you will get prompted with which 
# specific version of 4 you wish to install

or

sudo node-install -v 5;
# then you will get prompted with which 
# specific version of 5 you wish to install

or

sudo node-install -v 6;
# then you will get prompted with which 
# specific version of 6 you wish to install

or

sudo node-install -v 7;
# then you will get prompted with which 
# specific version of 7 you wish to install

or

sudo node-install -v 8;
# then you will get prompted with which 
# specific version of 8 you wish to install

or

sudo node-install -v 9;
# then you will get prompted with which 
# specific version of 9 you wish to install

or

sudo node-install -v 10;
# then you will get prompted with which 
# specific version of 10 you wish to install

or

sudo node-install -v 11;
# then you will get prompted with which 
# specific version of 11 you wish to install

or

sudo node-install -v 12;
# then you will get prompted with which 
# specific version of 12 you wish to install

or

sudo node-install -v 13;
# then you will get prompted with which 
# specific version of 13 you wish to install

Please note that this will work for EVERY raspberry pi.

If you have installed any global npm modules, and change your systems version of nodejs with node-install then node-install will reinstall your npm modules for you.

Buy Me a Coffee at ko-fi.com

or stop by at my blog: audstanley.com

Always keep NodeJs up to date:

If you want to keep your Raspberry Pi up to date with the Latest Version of Node at all times, edit your /etc/crontab file:

sudo nano /etc/crontab

Add this line to the bottom of your crontab:

0 22 1,7,14,21 * * root node-install -a;

This will update your raspberry pi with the latest version of NodeJs on days 1st, 7st, 14th, and 21st of every month at 10:00pm.

Thank you so much:

Hansie

Casper

Ladvien

Phil

Shane

Dan

Bob

Anon

Thank you (bug catchers)

JoelEllis

Kryten0807

fivdi for reporting that there are newer binaries of Node.

Traffic:

Thank you for checking out the project, and using the node-install utility. This github project (as of 2019), reaches about an average of 10,000 people every year.

About

Install NodeJs on your Raspberry Pi 1, 2, 3, 4, zero, and zero w

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages