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.

Node.js is an event-based, asynchronous I/O framework that uses Google's V8 JavaScript Engine.

Node.js — or just Node, as it's commonly called — is used for developing applications that make heavy use of the ability to run JavaScript both on the client, as well as on server side and therefore benefit from the re-usability of code and the lack of context switching.

It's also possible to use matured JavaScript frameworks like YUI and jQuery for server-side DOM manipulation.

To ease the development of complex JavaScript further, Node.js supports the CommonJS standard that allows for modularized development and the distribution of software in packages via the Node Package Manager.

Applications that can be written using Node.js include, but are not limited to:

  • Static file servers
  • Web Application frameworks
  • Messaging middleware
  • Servers for HTML5 multi player games

When asking questions about Node.js, you should:

  1. Make sure to check the official API documentation before asking, your question might be trivial.
  2. Isolate the problem and reproduce it with as little code as possible, if you can also use an online tool like JSApp for that, it's even better.
  3. If the question has nothing do with anything that's Node.js specific, please consider asking it as a question instead.
  4. Mention which version of Node.js you are running. When in doubt, use node -v.
  5. Make sure to only use the tag, since is ambiguous.

Interesting Questions and Answers

Common Topics

Useful Links

Tutorials, Guides and Books

Talks and Presentations on Node.js

Free Node.js Books and Resources

Chat Room

Chat about Node.js with other Stack Overflow users

223 questions
12
votes
4 answers

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 stage. Question: I would like to use at least v4 of…
Andi Giga
  • 543
  • 1
  • 7
  • 17
7
votes
4 answers

Which database to use with node.js and raspberry pi?

I installed node.js on my Raspberry Pi. But now I'm wondering what database I should use for it. I'd like it to be an easy solution. The easier to work with / fast installation / the better. I saw a lot of people like sqlite, but they mostly use it…
foreyez
  • 173
  • 1
  • 1
  • 6
4
votes
2 answers

Determine if running on a Raspberry Pi in Node.js

I'm developing a UI which also runs on a Raspberry Pi (currently with Raspbian). With the os object I can get information about the OS. But how can I be sure that I'm running on Raspbian or in general on a Raspberry Pi? console.log(os.platform());…
Boas Enkler
  • 215
  • 3
  • 7
3
votes
1 answer

Raspberry on Node.js - Spawns 5 node process on first page request

I just got my raspberry pi and i'm experimenting node.js on it. Specifically I'm making a web server to serve my own node.js web site. I'm a little puzzled by the process logs though. When i run my node app, a single node process is started as…
unclelim12
  • 175
  • 5
3
votes
3 answers

Cannot Install Node.js. Error: "GLIBC_2.16"

I'm trying to install node.js on my new RPi2 ... but I'm getting an error after I install. pi@raspberrypi ~ $ wget http://node-arm.herokuapp.com/node_latest_armhf.deb --2015-09-15 23:06:03-- …
Chef1075
  • 161
  • 1
  • 1
  • 7
2
votes
2 answers

Can't install NodeJS with "The following packages have unmet dependencies" error

My Raspberry Pi had NodeJS v 8 installed on it a while back and after running into some issues with Homebridge, I thought it was time for an update. Attempting to update NodeJS - and then completely remove and reinstall NodeJS - has lead me to this…
1
vote
1 answer

Can't run Node RED — "Invalid desktop entry file: '/usr/share/applications/Node-RED.desktop'"

I tried running Node RED after I tried to install another node red because I didn't know that I needed to copy the IP address on the console and type it in the search bar (I might be wrong; I'm still very new to the Raspberry Pi) but when the…
user78917
  • 23
  • 3
1
vote
1 answer

Installing specific NodeJS Version on my pi

If I want to install some specific NodeJS version from the nodejs.org/en/download or nodejs.org/dist website...do I have to take sth. in consideration? As far as I know the raspberrys are based on different processors, but I barely see any version…
1
vote
1 answer

Can't install node

I've tried several different methods of installing nodejs and they all fail. The latest one I've tried is the steps here: https://learn.adafruit.com/node-embedded-development/installing-node-dot-js While running sudo apt-get install node it tries…
Ben Lorantfy
  • 113
  • 6
1
vote
1 answer

How to use Raspberry Pi as data packets collector?

I want to send sensor data from 3 ARM boards over ESP8266 and want to receive it over Raspberry Pi 3 over WiFi or Bluetooth and display it on a webpage using node.js. Is it possible to separate out data collected from different ARM boards on…
Gagan Parmar
  • 113
  • 5
1
vote
0 answers

Running node.js script on start up

I have tried every method on here Execute script on start-up and I still cannot get a .js file to run on start up. The file is very simple: var noble = require('noble'); var request = require('request'); var http = require('http'); var trim =…
1
vote
1 answer

RPi Model B, Node.JS, Express, NGINX very slow response time

After some searching, I haven't been able to diagnose whether this is a typical response or not. After a fresh install of Jessie lite, Node.JS 5.5.0 from node's latest dist for arm and express, set up nginx for serving my static content and be my…
frdmrckr
  • 61
  • 4
1
vote
0 answers

Could not locate bindings file

I followed this Adafruit IO basics tutorial and everything installs fine, but when I want to start it (node digital_out.js) it tells me it can't locate the bindings file. What have I done wrong?
ThomasG
  • 11
  • 1
0
votes
1 answer

Node app become slow when running wget

I'm running a node app on a raspberry pi 3, it's a simple player that receive a list of urls (aws s3), download the url with wget and play them with mpd, but when the list is downloaded with wget, the app UI (http) become very slow and…
Elia Weiss
  • 129
  • 1
  • 1
  • 4
0
votes
2 answers

Is there any versions of NWJS and Atom-shell available for Raspbian armhf?

I contemplated the option of building an app that will run on a ARM single board computer (armv7l armhf) such as the new Raspberry Pi 2 using nw.js or atom-shell. My first research tells me that that might not be possible. Is that a fact and what…
zabumba
  • 257
  • 1
  • 7
  • 20
1
2