To see the latest version of v12, browse to:Īt the time of this writing, the latest version was v12.6.0. If you want to install for a Pi Zero W skip down to those instructions below. You will need to install the armv7l version. Here are the instructions to install NodeJS for a Raspberry 3 B+ or a Raspberry 4. Use the steps that match your device and/or ARM version, This step contains multiple sets of instructions. Notice the second to last string is armv7l ? That tells me I will need to download the NodeJS build that was compiled for armv71. Here is an example from my Raspberry Pi 4: Linux pi4 4.19.50-v7l+ #895 SMP Thu Jun 20 16:03: armv7l GNU/Linux Look for a string in the results that starts with armv (armv7l, armv6l, etc). Remote login to the Pi and run this command. Get the ARM versionīefore you install NodeJS, you first have to determine what type of architecture your Pi is using. If you didn't get an error, then you can skip down to the part about installing git. You can tell if you have NodeJS already installed by remote logging into the Pi or opening up a terminal window and running this command: node -v These instructions were only tested on the lite version. Note that if you are using the full version of the Pi desktop, you may have some version of node installed already. Headless Raspberry 4 SSH WiFi Setup (Mac + Windows) - the steps also work for installing on a Pi Zero W.Headless Raspberry Pi 3 B+ SSH WiFi Setup (Mac + Windows).If you need to install a lite version, I've written a couple of posts on how to do that: To test the steps in this article, I used Raspbian Buster Lite. Installing pm2 to keep your NodeJS apps running after restarts or crashes.Installing git and using it to clone a sample app.Installing NodeJS on a Pi to run Web apps.It also covers how to autostart your site after a reboot or crash using pm2 and manage source files with git. This article covers how to run NodeJS on a headless Raspberry Pi or Pi Zero W.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |