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

218 questions
30
votes
9 answers

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 packages and plug them into your applications - and this…
Mitch Denny
  • 401
  • 1
  • 4
  • 5
17
votes
4 answers

Configuring the Raspberry Pi for Node.js

Reading a book on Single Page Web Applications I came to a paragraph that got me thinking: Node.js is non-blocking and event-driven. In a nutshell, this means a single Node.js instance on modest hardware can handle tens or hundreds of thousands of…
Marius Butuc
  • 925
  • 3
  • 11
  • 20
16
votes
3 answers

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 raspberry pi specific projects to get node up and…
wmarbut
  • 1,113
  • 1
  • 9
  • 16
13
votes
5 answers

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 apt-get remove nodered apt-get remove nodejs…
4Taine
  • 131
  • 1
  • 1
  • 3
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
  • 541
  • 1
  • 7
  • 17
11
votes
2 answers

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 the most recent package I have been able to install…
MadeInDreams
  • 304
  • 1
  • 2
  • 10
9
votes
3 answers

How to install Nodejs v12 on Raspi Zero (ARMv6 not available for download anymore)?

I used to install nodejs12 on Raspbian by simply adding the repo and using apt: sudo su curl -sL https://deb.nodesource.com/setup_12.x | bash - apt install -y nodejs But with a fresh install of Raspbian Buster I just got this message when adding…
kramer65
  • 299
  • 1
  • 3
  • 10
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
7
votes
3 answers

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 lost. I only use simple wires on a breadboard to…
Stefano Masini
  • 171
  • 1
  • 1
  • 3
7
votes
3 answers

Problems with installing Node.js NPM package

I have a Raspberry Pi Model B+, and currently I have been working with web development. Today, I successfully compiled the source code of Node.js on my Raspberry Pi, and I managed to install it without any hassle. My current Node.js version is…
Shayan Doust
  • 128
  • 1
  • 1
  • 6
7
votes
4 answers

Node.js v0.11.14 exits with "Illegal Instruction"

I would like to use some of the last features (e.g. generators) of javascript in Node.js, so I download the latest unstable version of Node.js (v0.11.14) and compiled it on my RPi. But when I try to run it, it throws an Illegal Instruction error,…
Eaque
  • 193
  • 1
  • 1
  • 5
7
votes
5 answers

Pre-compiled Node.js for Raspberry Pi?

Is there a precompiled binary of the latest Node.js that runs on the Raspbian OS?
mkoryak
  • 243
  • 2
  • 8
6
votes
2 answers

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-linux-arm-pi.tar.gz After that i added the path to…
Boas Enkler
  • 215
  • 3
  • 7
6
votes
2 answers

How do I maximize a headless Pi to run node.js?

I'm starting over and want to maximize performance on a Pi to run node.js. How can I do this? I only need SSH, Samba, and node.js and I want to know how the memory should be configured.
PersonOfInterest
  • 301
  • 5
  • 14
4
votes
1 answer

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 believe this is preventing me from pairing…
Sawtaytoes
  • 211
  • 3
  • 13
1
2 3
14 15