Questions tagged [node.js]

Node.js is an event-based, asynchronous I/O framework that uses Google's V8 JavaScript engine. Node.js is commonly used for heavy client-server JavaScript applications.

Filter by
Sorted by
Tagged with
12 votes
4 answers
23k views

Install Newer Node Version on Pi 3

Setup I have a PI3 with Jessie. According to Wikipedia it uses a ARM Cortex-A53 which is ARMv8-A. When installing node.js using this adafruit tutorial I end up with node v0.12 which is still beta ...
Andi Giga's user avatar
  • 543
30 votes
9 answers
136k views

Getting NPM installed on Raspberry Pi (Wheezy Image)

I was lucky enough to get a Raspberry Pi under the tree this year and I've had a bit of fun playing with Node.js on the device. However, Node.js is much more interesting when you can pull down ...
Mitch Denny's user avatar
4 votes
1 answer
8k views

Why is Bluetooth address now showing up as AA:AA:AA:AA:AA:AA?

The issue I'm having is with my Raspberry Pi 3. I'm running this CLI-only with the Raspbian Jessie Lite build. At some point in using this device, my Bluetooth address changed to AA:AA:AA:AA:AA:AA. I ...
Sawtaytoes's user avatar
16 votes
3 answers
1k views

How do I install node.js if my package manager doesn't include it?

Node.js, server side javascript sitting on top of Google's v8 engine, is not available for install from the Debian squeeze's default repositories and doesn't easily compile for ARM. Are there any ...
wmarbut's user avatar
  • 1,113
13 votes
5 answers
31k views

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

I download the last raspbian version (2016-05-27) on https://www.raspberrypi.org/downloads/raspbian/ Node.js is already installed with the 0.10.29 version, so I removed that and reinstalled it with ...
4Taine's user avatar
  • 131
11 votes
2 answers
10k views

How to install node.js with GPIO

I am trying to install node.js on my Raspberry Pi as well as GPIO. I am running a brand new install of Debian Jessie I could get nodejs v.0.10.29 installed. No matter what I do, this is pretty much ...
MadeInDreams's user avatar
7 votes
3 answers
16k views

SPI: Raspberry PI master and Arduino slave

I'm trying to have a Raspberry PI act as a SPI master and send data to an Arduino Nano (one of the cheap clones). I partly succeeded, but I don't get a continuous communication, and some bytes get ...
Stefano Masini's user avatar
6 votes
2 answers
7k views

Node.Js on raspbian not found with Sudo

I installed node.js according to this article . For this i downloaded a precompiled node.js arm-pi distributition and unzipped it cd /opt sudo wget http://nodejs.org/dist/v0.10.28/node-v0.10.28-...
Boas Enkler's user avatar
3 votes
1 answer
4k views

`npm` and `nodejs` incompatibilities

I installed npm and nodejs today because I wanted to try tldr-pages. After the obligatory sudo apt-get update && sudo apt-get upgrade: $ sudo apt-get install nodejs npm Following a huge ...
Seamus's user avatar
  • 22k
3 votes
1 answer
2k views

Running a persistent node js server on boot and keeping the command line open

I know there are a lot of answers to this question but none have worked for me and I've been at it for something like six hours... Most of the answers also look like they are years out of date. I am ...
Jess Marcotte's user avatar
3 votes
2 answers
3k views

PN532 NFC module not working on Pi 3

I am trying to discover why my Pi 3 is not able to communicate with PN532 NFC module. I'm using a couple of libraries to do it (libnfc and NPM PN532), but it's not working. I followed the steps of ...
Bruno A. Klein's user avatar
3 votes
4 answers
2k views

Raspberry Pi run commands on boot

I thought that running commands on raspberry pi on boot was the easiest thing in my project. But it seems that it is complex enough not to work. I've searched a lot on the internet on a simple ...
Joe's user avatar
  • 135
2 votes
2 answers
2k views

Boost Site Speed - Raspberry Pi node.js server

I'm using my raspberry pi model B as a web server. I chose node.js since its something i'm most comfortable with. I used nginx too because I have multiple node.js apps and wanted different domains / ...
unclelim12's user avatar
2 votes
2 answers
4k views

How to change gpio directory for node.js pi-gpio?

I was wondering how to change the gpio directory for the node.js pi-gpio library. Whenever I try to run the script to change the pin it returns this error: "Error when trying to open pin 40 gpio-...
Matthew Pitzer's user avatar
1 vote
2 answers
1k views

Detect water level [closed]

I am currently tracking water level in a container that will start a pump when it gets high. To do this I use 3 wires one tapes to the bottom as a power wire and the other two taped to the wall at ...
Dev-Mev's user avatar
  • 11
1 vote
2 answers
5k views

Data loss (and/or corrupted) over serial USB connection to Arduino

I'm trying to connect an Arduino to my Raspberry Pi using a USB-to-serial cable. The goal is to be able to control a robotic arm using Firmata. I'm using Node.js' Johnny-Five module which allows me to ...
Taha's user avatar
  • 51
1 vote
3 answers
5k views

can't install npm onoff on raspberrypi

I'm trying to install npm's package onOff on my pi. I'm running this command: sudo npm install --unsafe-perm --verbose -g onoff And all I get is an error and rollback. do you know why? gyp verb ...
Txugo's user avatar
  • 241
0 votes
1 answer
410 views

Servo motor keep shaking while using software PWM to drive

Greet everyone, I am using JavaScript with pigpio to develop my learning project. How come my servo motor keeps shaking when I drive it by program PWM? codes are posted as follow: var servo1GPIO ...
mannok's user avatar
  • 103
0 votes
1 answer
742 views

Cannot access RPi server (node js) from a browser using hostname

I set hostname of my Raspberry Pi 3 to "myhost", avahi is running ok (systemctl confirmed, to run with myhost.local). From my Ubuntu WSL on Windows 10 I can ssh to the RPi with ssh pi@myhost ...
zupazt3's user avatar
  • 103
0 votes
1 answer
2k views

Controlling servo SPEED with either pi-blaster or pigpio

Ultimately I want to be able to control up to 8 servos using node.js - I'm able to control the servos using either pi-blaster or pigpio, but how do I control their speed with which they move?
riccardolardi's user avatar
0 votes
1 answer
647 views

npm rpi-gpio installation failed with multiple error messages, why?

I'm using Raspberry Pi model b Type 3 with ARM7 processor. I checked the internet connection, and i tried to install the npm rpi-gpio multiple times even after restarting the pi. I'm using Raspbian ...
jasim's user avatar
  • 123
0 votes
0 answers
428 views

Npm Install failes von raspbian

After installing node.js on a playground raspberry pi, i'm able to run node.js scripts. Now i had a folder which a packages.config which contains a dependency to express.js when running npm ...
Boas Enkler's user avatar
0 votes
2 answers
12k views

Controlling Raspberry Pi GPIO ports using node.js

I want to use node.js to parse data from a java script application back to the node.js server, I have accomplished this in a very rudimentary form and now I want to have the data turn on or off the ...
Matthew Pitzer's user avatar
-1 votes
1 answer
413 views

Show HTML from HDMI

On Raspbian Jessie Lite, is it possible to show HTML pages through HDMI using node and webkit? I am not sure on the internals of the Pi for custom graphics, so this question. It is however possible ...
arjun's user avatar
  • 151