35
votes
Getting NPM installed on Raspberry Pi (Wheezy Image)
This is the best way to install NodeJs on raspberry pi, i love that way, and i think it's easy to to do, and later for update just replace the '/opt/nodejs' folder with the new release:
wget https://...
29
votes
Install Node.js on an SD card to work on all Pi models
The reason why this is not working on your Raspberry Pi 1 is, that these packages are compiled for the wrong CPU - armhf (ARM 32-bit hard-float, ARMv7 and up: arm-linux-gnueabihf)
So the package ...
11
votes
Accepted
Install Newer Node Version on Pi 3
I installed node.js using the second method in the question today, worked just fine.
I have Raspbian Jessie on a Raspberry 3.
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-...
8
votes
Accepted
How to install Nodejs v12 on Raspi Zero (ARMv6 not available for download anymore)?
As of about April last year, it seems, NodeJS support for Armv6 moved to experimental see this thread for the RFC / discussion / reasoning etc. Armv6 is still supported and maintained on an ...
7
votes
How to install node.js with GPIO
For example to install RPi nodejs version 4.3.1 (see below for other versions)
wget https://nodejs.org/dist/v4.3.1/node-v4.3.1-linux-armv6l.tar.xz
tar xf node-v4.3.1-linux-armv6l.tar.xz
cd node-v4....
6
votes
Determine if running on a Raspberry Pi in Node.js
Based on joan's answer I've created a tiny Node.js library. It can be used to check if node is currently running on the RPi.
You can install it through:
npm install detect-rpi --save
To use it, you ...
6
votes
Install Node.js on an SD card to work on all Pi models
In one line of code, latest version, for any raspberry pi:
wget -O - https://raw.githubusercontent.com/audstanley/NodeJs-Raspberry-Pi/master/Install-Node.sh | sudo bash;
node -v;
Source code:
https:/...
6
votes
Accepted
Raspberry Pi 3 Raspbian open port or make my webapp accessible from LAN
To be able to connect to 127.0.0.1 (in other words the loopback IP) does not mean that the server app is bound to all network interfaces of the system.
To listen all existing or will be existed ...
5
votes
Accepted
Raspberry pi port forwarding with nodejs server
I'm port forwarding on my Raspberry Pi by adding these lines right before the exit line in /etc/rc.local:
# Forward port 80 to 5000 (where our web server is) so the
# web server can run at normal ...
5
votes
Accepted
Wireless communication between a RPI and a Android app - without internet
You can setup an access point on the RasPi so the smartphone can connect to it. There are hundreds of tutorials about this on the web, but many of them are outdated. The official Raspberry Pi web site ...
4
votes
Install Newer Node Version on Pi 3
How to install
wget https://nodejs.org/dist/v5.0.0/node-v5.0.0-linux-armv7l.tar.gz
tar -xvf node-v5.0.0-linux-armv7l.tar.gz
cd node-v5.0.0-linux-armv7l
sudo cp -R * /usr/local/ #attention copies also ...
4
votes
Accepted
Running a persistent node js server on boot and keeping the command line open
I found the solution after all. I used pm2 after all. The quick start suggested at the start of the pm2 documentation will not work. Follow the detailed instructions instead, which amount to:
Install ...
4
votes
Accepted
`npm` and `nodejs` incompatibilities
Packaged on debian based distribution:
sudo apt install tldr
With npm:
Install a supported nodejs version:
curl -sL https://deb.nodesource.com/setup_current.x | sudo bash -
sudo apt install nodejs
...
3
votes
Install Newer Node Version on Pi 3
Using nvm
An alternative solution is using nvm as the installer for Node. nvm stands for Node Version Manager and it has many benefits like:
picking the right version for your platform,
easily ...
3
votes
Cannot Install Node.js. Error: "GLIBC_2.16"
If you want to stick with stock Raspbian, Adafruit has a repository that includes, among other things, Node v0.12.6.
~/ghost% node -v
v0.12.6
~/ghost% lsb_release -d
Description: Debian GNU/Linux ...
3
votes
Cannot Install Node.js. Error: "GLIBC_2.16"
Steve Robillard was correct. I need to install Debian Jessie.
3
votes
Getting NPM installed on Raspberry Pi (Wheezy Image)
I find the easiest way to get NPM (and the latest version of Node.js) on any Raspberry PI (Zero to 3) is to use "NVM" (Node Version Manager).
To install NVM:
wget -qO- https://raw.githubusercontent....
3
votes
Detect water level
I would recommend that you use an ultrasonic sensor placed at the top of the container to measure the water level relative to the top of the container then you may subtract that from the overall ...
3
votes
Accepted
PN532 NFC module not working on Pi 3
Steps to install NFC PN532
The Raspberry pi 3 has changed things around a bit: ttyAMA0 now refers to the serial port that is connected to the bluetooth. The old serial port is now called ttyS0. So if ...
3
votes
Servos on Arduino run fine connected to Mac, poorly connected to Raspberry Pi 3
Your GeekDuino is based on ATMega328 which AFAIK doesn't provide any UART flow control. So, if you send too many bytes at once, you will lose some of the bytes and thus risk to get erratic behavior ...
3
votes
Accepted
Why is Bluetooth address now showing up as AA:AA:AA:AA:AA:AA?
The issue is Bluez version 5.43 on this version of Raspbian.
You need to downgrade to 5.23, the standard version for the Jessie build, to be able to use Bluetooth properly. This is probably caused by ...
3
votes
How can I display data in a table (through software or a webpage)?
Seems like an IoT question, but anyway.
You should define your project better. Usually then we start planing a project, we first list what we expect from the system.
I guess that you want your ...
3
votes
Raspberry Pi run commands on boot
If you're expecting a GUI browser to open, the DISPLAY environment variable may need to be explicitly set so that the browser the webbrowser module opens knows where to show itself. Otherwise it would ...
3
votes
Raspberry Pi run commands on boot
In order to store the script’s text output in a log file, you can change the ExecStart line to: ExecStart=/usr/bin/python3 /home/pi/sample.py > /home/pi/sample.log 2>&1
This is wrong, ...
3
votes
Raspberry Pi run commands on boot
Just haven't a monitor by hand so I can't test it but here are some ideas how it could work with reference to this accepted answer How to make a service to run a python script which includes browser ...
3
votes
How to install Nodejs v12 on Raspi Zero (ARMv6 not available for download anymore)?
I've updated the "one line install" CLI scripts in the github.com/sdesalas/node-pi-zero repository.
These are now pointing to the binaries in the Unofficial Builds Project.
For example:
v12....
3
votes
Can the Raspberry Pi 4 do h265 encoding?
Unless there are memory constraints, anything with a cpu can encode to any known binary format.
The only limitations to this (and the only thing that would make this question Pi specific) is if it can ...
2
votes
Accepted
Pre-compiled Node.js for Raspberry Pi?
Node.js distributes official pre-compiled binaries that works on Raspberry Pi:
cd /opt
wget https://nodejs.org/dist/v9.4.0/node-v9.4.0-linux-armv6l.tar.xz
sudo tar xzf node-v9.4.0-linux-armv6l.tar.xz
...
2
votes
Getting NPM installed on Raspberry Pi (Wheezy Image)
I run raspbian jessie on pi 3. Node comes pre-installed in the image but npm does not. Had challenges in installing npm and this thread helped me get clues.
The error I received was
pi@raspberrypi:~ ...
2
votes
Is there any versions of NWJS and Atom-shell available for Raspbian armhf?
I have just created a repository with the node-webkit binary port that runs on Raspbian, tested and working on Raspberry Pi 1 and Raspberry Pi 3 so it is ARMv6 and ARMv7 compatible.
Here you can ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
node.js × 225raspbian × 61
gpio × 33
web-server × 17
pi-3 × 16
javascript × 14
python × 13
networking × 10
pi-2 × 9
pi-4 × 8
pi-zero-w × 8
pigpio × 8
rpi.gpio × 7
software-installation × 7
bluetooth × 6
pi-3b+ × 5
serial × 5
arduino × 5
mongodb × 5
nodered × 5
boot × 4
linux × 4
sensor × 4
led × 4
wiringpi × 4