Skip to main content
Share Your Experience: Take the 2024 Developer Survey
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 ...
Grmpfhmbl's user avatar
  • 413
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-...
oldwizard's user avatar
  • 226
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 ...
Hargrovm's user avatar
  • 211
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:/...
Audstanley's user avatar
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 ...
fourcube's user avatar
  • 161
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 ...
vaha's user avatar
  • 1,240
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 ...
Ingo's user avatar
  • 42.2k
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 ...
Andi Giga's user avatar
  • 543
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 ...
GAD3R's user avatar
  • 442
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 ...
bosch's user avatar
  • 131
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 ...
Mohammad Ali's user avatar
  • 2,383
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....
Wireblue's user avatar
  • 131
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 ...
Bruno A. Klein's user avatar
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 ...
Dmitry Grigoryev's user avatar
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 ...
Sawtaytoes's user avatar
3 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 ...
Jess Marcotte's user avatar
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 ...
GramThanos's user avatar
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 ...
Fred's user avatar
  • 4,552
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, ...
goldilocks's user avatar
  • 59.1k
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 ...
Ingo's user avatar
  • 42.2k
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....
Steven de Salas's user avatar
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 ...
user10489's user avatar
  • 991
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:~ ...
Krishnan V's user avatar
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 ...
jalbam's user avatar
  • 151
2 votes

SPI: Raspberry PI master and Arduino slave

I don't know what is wrong with your set-up but I can confirm that it can work. I've just tried between a Pi and a Pro Mini. The only odd thing is that the transmitting serial baud rate was twice ...
joan's user avatar
  • 71.1k
2 votes
Accepted

HTTP Server stops after some time

When one connects remotely to a Pi using a remote client (eg. ssh, telnet, etc) then a shell is opened. Commands can be run in the background using the "&" (ampersand) operator. However, when ...
Kolban's user avatar
  • 1,784
2 votes

/usr/bin/nodejs: no such file or directory

As xdhe points out you need two packages (I am surprised npm did not include node as a dependency, but anyway...) sudo apt install nodejs sudo apt install npm
goldilocks's user avatar
  • 59.1k
2 votes

Install Node.js on an SD card to work on all Pi models

I liked Audstanley's solution above although it didn't work for me out of the box. I found that I needed to run the script with root access. This worked for me: sudo bash sudo wget -O - https://...
DanielMuhlig's user avatar
2 votes
Accepted

Disabling serial console/kernel messages on Pi B 2 while still being able to write/read to serial port

Edit /boot/cmdline.txt using sudo nano /boot/cmdline.txt or your preferred method, and delete console=serial0, 115200. If you are using an older version of Raspbian, you might need to delete ...
Patrick Cook's user avatar
  • 6,365
2 votes

Unable to install npm onoff

You don't have node in your $PATH, only nodejs. That's a quirk of Debian-based systems due to a naming conflict. You need to install nodejs-legacy to fix. sudo apt-get install nodejs-legacy Or, if ...
kba's user avatar
  • 312

Only top scored, non community-wiki answers of a minimum length are eligible