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. NOTE: Please read the Tag-Wiki before asking questions.

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 middle ware
  • Servers for HTML5 multi player games

When asking questions about Node.js, you should:

  1. Make sure to check the official API Docs 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 ambigious.

Interesting Questions and Answers

Common Topics

Useful Links

Tutorials, Guides and Books

Talks and Presentations on Node.js

1026 questions
0
votes
1 answer

Does scp block server functions?

I have a node.js application server. It serves my api and dynamic web pages. The database is not on the server. I want to continuously scp files into the server. Would that cause slow downs or block web requests or would it only have a minor…
Harry
  • 101
  • 2
0
votes
3 answers

My node.js http server appears to be blocked by iptables

EDIT: Solved... There was a hardware firewall in the way! I installed node.js on a remote Debian GNU/Linux 6.0.4 (squeeze) server and ran this http server on port 8866. var http = require('http'); http.createServer(function (req, res) { …
Hans Wassink
  • 113
  • 6
0
votes
1 answer

Can't Install npm, Can't Remove npm, Can't Access Any Commands, Can't Install Coffeescript

I am on Mac OS X Lion, I just used the package installer from nodejs.org to install node.js. Node.js is working fine, and Node.js comes with npm. I have homebrew installed as well. I am just trying to install coffeescript, but the terminal keeps…
mcbeav
  • 23
  • 8
0
votes
1 answer

HAProxy and 2 webservers

I have a website that is split into two different servers: chat server in node.js normal website (lighttpd + php + whatever) now, I have set HAProxy in the same machine as node.js chat, so that when my website is accessed, it will redirect to the…
0
votes
1 answer

CURL not working in node.js in CentOS 5.7, but works fine in debian 2.6.32-5

working on an app in node.js, On the test server (debian 2.6.32-5) it works flawlessly, on CentOS 5.7 I get an error. using the curlrequest node.js library, and the error that comes up is "failed to initialize". I tested curl from the command line…
0
votes
2 answers

How would the outside world access my machine?

I have a local address e.g: http://127.0.0.1:8125/ -> this works, How would I access this using a different PC lets say from work, or friends house or allow anyone to access this? I am using node.js to create a simple server and listens for the…
Val
  • 113
  • 6
0
votes
4 answers

web servers & php

I usually code in PHP, and always used apache. I have started my own website but I soon realised that apache is not the best solution to have: it uses 15MB of memory per page, making a small server running out of memory with something like 200…
Enrico Tuttobene
  • 227
  • 2
  • 5
  • 11
0
votes
1 answer

Is it possible to install node.js in IIS7?

Is there a way to install node.js in IIS7? I have very little experience with node.js but the idea of writing server-side JavaScript intrigues me.
0
votes
1 answer

nginx / node.js / postgres, scalability problems?

I have an app running with: one instance of nginx as the frontend (serving static file) a cluster of node.js application for the backend (using cluster and expressjs modules) one instance of Postgres as the DB Is this architecture sufficient if…
Luc
  • 518
  • 3
  • 5
  • 21
0
votes
1 answer

unknown load balancer performance with varnish

We're currently using Varnish because it does a good job caching, and I'm trying to get it to perform well on cache misses. My benchmarks are giving me results I don't understand. I have 3 boxes from rackspace, all running Centos 5.5. 1 has Varnish…
Sean Clark Hess
  • 273
  • 3
  • 13
0
votes
1 answer

how to install npm if couldn't resolve npmjs.org

when m doing curl it says could not resolve host what can i do ? curl http://npmjs.org/install.sh | sudo sh curl: (6) Couldn't resolve host 'npmjs.org' http://npmjs.org/ /etc/resolv.conf search x1 nameserver x2 nameserver 8.8.8.8 nameserver…
Rahul Mehta
  • 999
  • 3
  • 11
  • 13
0
votes
3 answers

Local computer for serving a web app via LAN

Possible Duplicate: How do you do Load Testing and Capacity Planning for Web Sites I'm planning to create a "voting tool" to help votation in a conference of my NGO. My idea would be to create a small app with node.js + mongodb for server and…
Bakaburg
  • 113
  • 1
  • 2
0
votes
1 answer

nginx, php-fcgi, VBulletin, Wordpress & Node.js

CompassionPit.com is a Node.js app. The CompassionPit blog is WordPress and the CompassionPit forum is VBulletin. Everything was working fine and dandy until I installed the VBseo plugin for VBulletin, which wants me to add these lines to my nginx…
Zack Burt
  • 201
  • 1
  • 3
  • 6
0
votes
1 answer

Internal portforwarding

I am currently working on a webapplication which uses node.js and socket.io. Socket.io need to start a small tcp on port 843 for delivering crossdomain.xml's for FlashPlayers socket connections. As port 843 < port 1024 the node process must run as a…
TheHippo
  • 236
  • 3
  • 11
0
votes
2 answers

Any chance to install npm without root access?

I'm using EC2 with their Amazon Linux AMI. There is no way to login as root for security reasons. I installed node.JS with no problem but failed with the Node Package Manger. When using curl without sudo it fails because userrights are missing, if…
user414873
  • 101
  • 2