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.

learn more… | top users | synonyms (1)

0
votes
0answers
4 views

How to search for two fields in two arrays in mongodb nodejs

Two of the fields in my mongodb record are: first and last I am presented with two arrays: first_array = [bob, gary, john] last_array = [smith, evans, johnson] There is a one to one correspondence ...
0
votes
0answers
3 views

How to use an NPM Mirror

The npm registry is down again, resulting in npm install not working. Question: How do we use npm to pull packages from npm mirrors? Are there any recommended npm mirrors?
0
votes
0answers
5 views

Running imagemagick on Azure with node.js

I have a website on Azure and can't seem to run imagemagick. I have the binaries there, and have changed my javascript files to point to the imagemagick binaries. The binaries seem to be running, but ...
-1
votes
0answers
8 views

Is building node-sqlite3 by hand supposed to work?

I've been trying to build node-sqlite3 by directly calling (from within the node_modules/node-sqlite3 directory): node ../node-gyp/bin/node-gyp.js configure build Prior to v2.1.16, this worked. ...
0
votes
0answers
10 views

MongoDB find documents based on array of values

I have one collection, called "games" whose documents store the ids of the owners of games. { "owner" : "88878b6c25c167d" } { "owner" : "88878b6c25c167d" } { "owner" : "af565f77f73469b" } ...
0
votes
1answer
9 views

Why does node.js ignore my PowerShell ExecutionPolicy setting?

I have a node app where I'm trying to call powershell: var app = require('express')(), child_process = require('child_process'); app.post('/deploy', function(req, res) { var errors = ''; ...
4
votes
1answer
36 views

Difference between method and property on an object in node.js

I am trying to understand how properties of an object relate to methods defined on the object's prototype. The following code prints 'ECMA style 5', while I would expect it to print 'ECMA style 3'. ...
0
votes
1answer
16 views

socket.io common server and client code

I'm trying to build an app with node.js, socket.io and express. I have a public directory which contains all the client code and that is sent to client via express app.use(express.static(__dirname ...
0
votes
0answers
5 views

node-celery vs node-amqp for RabbitMQ

I've been recently reading into task queues and message queues, and I am a bit confused as to how everything fits together. I see that both node-celery and node-amqp provide ways to add to the ...
0
votes
0answers
5 views

Using Spooky.js with Cucumber.js: Hooks Are Not Being Called

Following the examples/cucumber structure that comes with Spooky.js, this is what I've constructed, plus the standard run.js and example.feature files not included here. /features/support/world.js: ...
0
votes
1answer
8 views

TypeError when rendering dust.js template

I have a dust.js template that should render a JSON object coming from a mongodb collection. { "author": "Leslie Horn", "title": "An Awesome 132-Cube Ice Tray Exists Because People Are Assholes", ...
0
votes
0answers
6 views

Nodetime heap snapshot clarification

I'm using Nodetime to debug my node server. I've never used a heap snapshot and I'm trying to learn how this can be used most efficiently. Im looking for memory leaks in my node server. There are ...
0
votes
0answers
15 views

How to pipe binary data to a program in Nodejs?

I want to do equivalent of this: cat /tmp/123_preview.h264 | avconv -i pipe:0 -f image2 /dev/stdout 2>/dev/null | base64 -w 0 But instead of using file I want to pipe binary data to avconv ...
0
votes
0answers
18 views

How to get browserver-node to work

When I try to get this popular server and this client to work, I get the following error message in my browser: Gateway Time-out (I don't get any error message in the console when I start the server ...
0
votes
0answers
16 views

Plugin system using mean stack

I'm planning on using MEAN stack for a kinda big application. I'd like that application to be based on plugins. Ideally, each plugin should be able to : Define node routes, controllers, models ... ...
0
votes
0answers
22 views

Populate MongoDB from CSV using NodeJS

I am trying to populate my MongoDB using data from a CSV file. There are currently no databases or collections in my MongoDB and I would like to create these using an update function that creates ...
0
votes
0answers
4 views

SocketIO4Net dynamic client?

I'm trying to connect C# with node.js using sockets. I'm using SocketIO4Net Right now, in the C#, I have a hard-coded ip address representing the node.js server For example socket = new ...
0
votes
0answers
4 views

How to set the clojurescript *print-fn* fn in nodejs

I am playing around with compiling clojurescript to nodejs and I just really want to use the println function: (println "hello world") However, it gives me an error No *print-fn* fn set for ...
0
votes
1answer
16 views

UPDATE in PostgreSQL 9.1 seems to misuse placeholder types

Given the following schema (as an example) CREATE TABLE "test" ( "id" int, "title" varchar ); in NodeJS, I try to do an UPDATE with the following client.query( 'WITH new_vals ...
0
votes
0answers
10 views

What is the IE version of webdriver.Capabilities.firefox()?

I have a script which works with: ... webdriver.Capabilities.phantomjs(); webdriver.Capabilities.chrome(); webdriver.Capabilities.firefox(); webdriver.Capabilities.safari(); ... but fails on any ...
0
votes
0answers
17 views

Django sessions with socket.io - why is user logged out after receiving message?

I have a simple order management system built with Django where users get orders from their customers through their websites and these orders are displayed in real time on the users' ...
1
vote
2answers
27 views

Error while installing express

Saw following error while installing express. I am using node 0.10.17 and npm 1.3.8 I tried npm install express It looks like version issue. Which version is recommended? npm ERR! Error: shasum ...
0
votes
1answer
17 views

Trying to get a list of collections from mongoose

I'm trying to return a list of a dbs collections using mongoose. I'm following the directions set out here but http://grokbase.com/t/gg/mongoose-orm/122xxxr7qy/mongoose-get-a-list-of-all-collections. ...
0
votes
1answer
13 views

Nodejs child process stdin.write no callback

I have spawned a "keep alive" nodejs child process that does things in response to incoming http get request. var spawn = require("child_process").spawn; var child = spawn("long_live_exe"); ...
0
votes
1answer
23 views

NPM install failed on Windows for running grunt

I was trying to install grunt on Windows 7. I completed the npm install -g grunt-cli without any error. But when I tried npm install in the root directory of my project I got the following errors: ...
0
votes
1answer
10 views

Node http.request not working

I am trying to create a simple server and a simple client with node.js using http module. Server is working fine but client is not. Please help me to find the bug... Server Is : var server = ...
1
vote
0answers
12 views

HTML from email cross site scripting issues

I have a nodejs app that queries an Exchange server using Exchange Web Services. I retrieve emails out of an inbox and convert them to tasks in my app. However the body of the emails contains outlook ...
2
votes
1answer
20 views

req.files not working node.js - express

Hey so I am trying to accept an uploaded file but everytime I call req.files it is considered undefined... Not sure what I am doing wrong... This is my app.js file: var express = require('express') ...
1
vote
0answers
18 views

socketIO-client - RuntimeError: maximum recursion depth exceeded

I am trying to communicate between a node.js application and python using socket.io with the socketIO-client 0.5.1 library on the python side. Below are the two code chunks: var http = ...
0
votes
1answer
10 views

Should I be nesting async.mapSeries in Node.js?

I need to loop through cells in a matrix. Each cell has a request associated with it, and I must wait for each request to finish before moving onto the next. I currently use async.mapSeries to loop ...
0
votes
1answer
33 views

npm unable to fetch Meteorite

With nodejs v0.10.22 and npm v1.3.14, I tried installing meteorite as shown below: $ npm install meteorite npm http GET https://registry.npmjs.org/meteorite npm http 304 ...
0
votes
1answer
9 views

Can't get xml2js Builder example working

I am trying to use xml2js to parse apart xml from rest API return and then turn the modified JSON back into XML to send back. But I can't seem to get xml2js's default builder example from their GitHub ...
0
votes
0answers
16 views

Redis, reading while writing with NodeJS

I have a NodeJS worker that updates my Redis database every hour. The work queries a remote database in batches so that groups of requests are sent in series, so as to maximize performance (on the ...
0
votes
1answer
18 views

SpookyJS: Console.log Doesn't Work Inside Then

try { var Spooky = require("spooky"); } catch (e) { console.log(e); } var spooky = new Spooky({ capser: { logLevel: "debug", verbose: true }, child: { command: ...
0
votes
0answers
8 views

All Yeoman generator installations throw massive errors

I'm having a problem with running generators after installing them through npm. After installing yoeman, grunt and bower as well as any generator, any attempt to run the generator in a new filespace ...
0
votes
0answers
9 views

Is it possible to use the gift library to view all of the branches of a remote repository?

Gift is a node.js library that implements grit like functionality. How can I view all of the remote branches and pull them down?
0
votes
0answers
8 views

Error using Redis Multi with nodejs

I am using Redis and consulting it from nodejs, using the module Redis. When i exec a client.multi() and the redis server is down the callback doesn't send the error and the nodejs app terminates. ...
0
votes
1answer
22 views

Synchronous less compiling in NodeJS

I'm trying to write a transform script for Browserify that allows me to require() .less files. The transformation will compile them to CSS and then wrap that minified CSS in a little Javascript ...
0
votes
0answers
17 views

Is it a good idea to port modules to streams2?

There are some widely used userland modules like through and duplex that are now useless (are they ?) because there are implementations of those on the core stream module. Because of this I've been ...
0
votes
1answer
20 views

Monk sorting with limit option

I am trying to use limit and sort in monk api in the following manner, db.user.find({changesId : '1234'},{limit :4 , sort : { name : 1 }, function (err,res) { }); The sorting doesn't seem to work in ...
0
votes
3answers
50 views

My app is installed in emulator, but throws an error : Unfortunately AppNAME has stopped

I am building an app using Phonegap and Cordova. When I run the app in Eclipse emulator the apk gets installed successfully but after clicking on it I get an alert saying "Unfortunately AppName has ...
1
vote
0answers
14 views

static node.js error by using xampp

I recently started with p2p mediastreaming and used the tutorials of html5rocks.com for starting with webrtc https://bitbucket.org/webrtc/codelab. I got it all working and it al worked fine for me. ...
0
votes
0answers
18 views

“Backend-driven” IM for node.js / Angular

I'm looking for some kind of IM system for my node.js & angular project. Instead of writing my own IM system, i want to use something "backend-driven" like irc or xmpp/jabber... Someone who could ...
0
votes
1answer
18 views

How to save response returned as application/pdf

I am making an API call to SmartSheet that returns the worksheet as a PDF file. This is the relevant documentation - link My question is how do I accept the PDF response and save it locally in ...
0
votes
1answer
15 views

npm command not found after restart

The npm command keeps becoming unrecognised after a computer restart: -bash: npm: command not found The node command still works fine, it's just npm that's not working. I have to reinstall Node.js ...
0
votes
0answers
22 views

Nodejs with postgresql: high cpu load and lots of garbage collection

I'm trying to use postgresql with node.js and I'm using the pg package. After some queries it always blocks the whole process, uses 100% of the CPU and does nothing else anymore. I ran the ...
0
votes
1answer
25 views

How to recieve some files at A node.js/express server and send files to B node.js/express server

I'm working on node.js express servers I'm stuck! Cant find correct answer in documentation or somewhere else I need able to: recieve 2-3 PDF files at server A from client-side --> upload those ...
1
vote
2answers
14 views

nodejs - mocking modules, naive approach

Currently I am writing some unit tests for my server side code that is written using nodejs. Now, I have a situation where my custom module is using some other modules, mine or from nodejs standard ...
3
votes
2answers
66 views

why is this private method in a constructor?

I'm a bit puzzled by this coding pattern I've run into even though I've been studying up on 'this.' The following (simplified) code shows the pattern: var MyConstructor = function MyConstructor() { ...
0
votes
0answers
27 views

Nodejs + Firefox behavior in relation to the HTML5 <audio> element

I am using Nodejs and Firefox to display a web page. That page has a HTML5 audio element. The problem I have is related to the calcul of the audio duration. In my node js script I have: var app = ...

15 30 50 per page