Node.js is an event-based, non-blocking, asynchronous I/O framework that uses Google's V8 JavaScript engine. It 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 ...

learn more… | top users | synonyms (2)

0
votes
0answers
3 views

Setup MongoDB to be reachable from remote application

I have a web server that runs MongoDB. It will save some data that I need a second application installed in a different computer to be able to query on. The server with MongoDB is an Ubuntu, it will ...
0
votes
0answers
5 views

How to pass row-by-row in nodejs?

This is the code $('.Text').each(function() { var data = $(this); temp = data.text(); fs.appendFile('output.csv', temp , function(err) { ...
0
votes
0answers
3 views

How to configure standalone Jetty 9 as a reverse proxy to a node app?

We are using standalone Jetty 9 to serve some webapps that are deployed as war files. The thing is that we just released a NodeJs webapp that uses Express and listens on localhost:3000, and we would ...
0
votes
1answer
7 views

Express sometimes picking wrong route

I am having a NodeJS based REST service exposed using Express(~4.0.0) where I have two different routes like this: router.get('/buckets/:bucketId/entities/bulk', getEntitiesInBulk); ...
1
vote
3answers
23 views

npm install: install Couldn't read dependencies

I have started to learn Angular JS. I am going through this, that is building simple phonecat app I am following the steps. Node.js downloaded. Trying to execute this command: npm install Error ...
-3
votes
0answers
11 views

How to install node js and setup a “hello world” website on a shared linux hosting?

I am new with Node JS, I was able to install and setup node js on my local windows machine and also a simple http server which returned "hello world" text by reading on the internet - (blogged about ...
0
votes
1answer
10 views

Not able to uninstall `nodejs` from windows 7

I am not able to uninstall the nodejs from my system. It throws error and stop to uninstalling. here is the error what I am getting: what is wrong here? how to uninstall the node completely?
0
votes
2answers
10 views

How to updgrade Node js version to 0.12.4 on Ubuntu

I want to upgrade Node JS version on Ubuntu. I tried many commands but its version is still the older i.e v0.10.37. I tried: sudo npm install -g n sudo n install 0.12.4 sudo n use 0.12.4 Also ...
0
votes
0answers
9 views

Where should I do the core logic code in express js?

I am using express js for my website. i have created the directory structure using 'express-generator'. it contains 'views' folder to render views. it also has 'routes' folder for routing purpose. now ...
1
vote
0answers
30 views

Use Node.js to Edit HTML Files

I have searched around quiet a bit but failed to find a solution to my specific scenario. I have used Cheerio module to parse a bunch of html pages, ut what i couldnt do is edit or add HTML code to ...
0
votes
1answer
9 views

Consecutive and sequence insert in node.js sqlite

my code is: var json = [1,2,3,4,5,6,7,8,9]; async.forEach(json, function (that, callback) { sqlitedb.run("INSERT INTO mytable (name) VALUES ("+that+")" , function () { ...
0
votes
2answers
20 views

Mongoose find() RegExp for Number type field

I'm try to create a table with filters and when i need find rows through regular expression i have error below. How i can use RegExp with field type of Number? Change field type on String, is a good ...
0
votes
0answers
9 views

Best way to achieve automatic posting to facebook using nodejs

I'm developing a nodejs app which basically posts in an automatic way, videos to a Facebook page. I'm the admin of the page so user auth should be done once. Up until now, I was using an unpublished ...
0
votes
0answers
6 views

SequelizeJS: How to include association (join) across multiple databases without using raw query

Suppose, there is "Account" table in DB "A", and there is "ConversationHistory" table in DB "B". My pseudo initialized script is: // Connection Script var db1 = new Sequelize("A", user, password) ...
0
votes
1answer
18 views

Node.js server side checks

I have the following route router.post('/reportDetails', reportSubmit); where on submitting the form on the page i do the following check in the callback reportSubmit.js module.exports = ...
-1
votes
0answers
12 views

How to use cheerio?

I'm relatively new to express / node. I'm still a little confused on certain things. Like what uses does cheerio actually have outside of scraping remote web sites? Can I use it to inject html in to ...
0
votes
0answers
12 views

How can I deal with this npm ERR?

how can i solved this problem ??(sorry~i am a starter,it's might be a stupid question) jeffWangdeMacBook-Pro:~ jeffwang$ npm install npm ERR! install Couldn't read dependencies npm ERR! Darwin ...
0
votes
0answers
7 views

firebase-import timing out?

I'm using the firebase-import tool to upload JSON data to my firebase. I consistently get the following error after trying to upload a JSON file that is ~40MB in size. Any ideas why? The output seems ...
0
votes
0answers
3 views

NPM Private Modules: How can I install my private modules on a AWS Beanstalk instance?

NPM Private Modules look great, but I'm not sure how to install them on an AWS Beanstalk instance. Is there any literature published on this? Also, on the default Node.js configuration Beanstalk ...
0
votes
0answers
2 views

LDAP Authorization for Node.JS in Windows

I'm trying to build a Node.JS project that takes advantage of LDAP authorization so that existing user authentication information can be used. The catch is that all our machines are Windows machines. ...
1
vote
1answer
30 views

Utf8 accents in nodejs

i tried to read a vcf file with utf8 encoding, with the result is: { "name": "=4A=61=76=69=65=72=20=4C=75=6A=C3=A1=6E", "tel": "2814682382" }, the problem are accents chars, for ...
0
votes
0answers
16 views

npm start: “ReferenceError: angular is not defined”

I am following the tutorial at https://thinkster.io/mean-stack-tutorial/ and I get the titular error when I run 'npm start', 'node bin/www', or 'node angApp.js' I ran the following commands (in ...
0
votes
0answers
7 views

Deploying Hello World nodejs app to Google Cloud seems to run forever

I'm using the gcloud nodejs preview and deploying the hello world, following the instructions here. When I run: gcloud preview app deploy app.yaml --set-default it seemed to take forever and went ...
0
votes
1answer
12 views

Problems installing sqlite3 for node.js

I am trying to install sqlite3 for my node.js server on Windows 8. I have used the command npm install sqlite3, but it told me that package.json is not found. I have installed packages using npm in ...
0
votes
0answers
5 views

android sdk install error EPIPE

I'm on Meteor 1.1.0.2 Mac Yosemite, and I have this error when I try to install the android SDK for Meteor $ meteor install-sdk android Installing Android bundle ✓ A JDK is installed Installing ...
-1
votes
0answers
16 views

How do I capture the stdout stream from a child process?

I am writing a node script that creates a child process. That child process prints a line to standard output. I want to capture that line in a string variable. This is what I tried: var stream = ...
0
votes
0answers
12 views

Search bar node.js, express and mongoose

I am trying to implement a search bar for my webpage. The front end is completed, I also implemented the backend and when I press GO it works, I see my search term in the url: ...
0
votes
0answers
4 views

How do I compile mutliple HTML Jade templates that use the same mixin

mixin hero(title) .hero .hero__inner h1.hero__title #{title} So, my project uses a Jade mixin like the above on multiple pages and, when I compile the Jade to HTML pages, I ...
0
votes
1answer
10 views

node.js net connect doesn't show error when wifi is off

I'm writing a node.js client to receive data from aprs T2 server. It works fine when wifi is stable. However, when I turn off wifi manually, it doesn't show any error message. When I turn on wifi ...
-2
votes
0answers
16 views

“SyntaxError: Unexpected token for” Node.js using File System

I really need your help. What I want to try is create a new File with node.js using File System and concatenate n files in the new file created. The program must be invoke like this: node program.js ...
0
votes
2answers
10 views

RegExp vcf in Javascript

I have this structure, and i want to extract only FN and TEL: BEGIN:VCARD VERSION:2.1 N:Pepe;Perez;;; FN:Pepe Perez TEL;HOME:+549465738283 END:VCARD BEGIN:VCARD VERSION:2.1 N:Jose;Perez;;; FN:Jose ...
1
vote
1answer
12 views

Need help making this translation function work with an array input

I am trying to input an array of string values and translate them using an API then bring them back and display the array in the same order. I have been trying to make this work using the async.map ...
0
votes
0answers
10 views

Testing socket.io with mocha

I am just getting into Node/Express and I am trying to write some BDD tests with Mocha. I am confused as how the callback function (usually done()) is used in Mocha testing. I have the following ...
0
votes
1answer
10 views

Cannot Receive Incoming call on Twilio android Client

I am Developing an android application for making calls,using the Twilio API. I am able to make an outgoing call from the twilio android client,but I cannot receive any incoming calls. So what ...
0
votes
0answers
10 views

How to solve CERT_UNTRUSTED error in nodemailer

I am trying to send an email with nodemailer. I already managed to send it from another host but now I want to send emails from another address. These are the versions of nodemailer I am using (from ...
0
votes
1answer
17 views

Angular/Express/Mongoose PUT method Inline Table Issues

So I've been ripping my hair out for a few days now. I am not sure why my PUT request in my angular/node train schedule app is not working. GET/POST/DELETE all work and I can update in POSTMAN but ...
0
votes
0answers
8 views

Building associated objects with mongoose and express 4

Can we build associated objects like we do in rails with expressjs and mongoose ? Am using mongoose as the ODM. If not then what is the best way to handled say a one-to-many relationshipse. how can ...
0
votes
2answers
31 views

Pass arguments to another function

Here I assign one Argument to the Handler: const unsigned argc = 1; v8::Local<v8::Value> argv[1] = { NanNew("hello world") }; NanMakeCallback(NanGetCurrentContext()->Global(), callHandle, ...
0
votes
0answers
8 views

Set newly created folder's view property using Node

So in my node app I create a folder using makedirp and then open that newly made folder ( exec("start d:" + req.param('foldname') + "\" + paramName, puts); The only thing I cannot find is how to set ...
0
votes
0answers
11 views

Using a query to search for a task_name, when function to find by id is already implemented

Okay so I'm trying to create a simple todo list, web api. I have the basic functions implemented and working properly but I'm trying to use a query to search by task_name as declared in my code, but ...
0
votes
2answers
40 views

Node.js - Socket.io io.emit() doing nothing

I'm having a problem with my socket.io applicaiton, the io.emit(), and io.sockets.emit() straight up do not work, they do nothing, and return no error. I've provided here the most simplified version ...
1
vote
0answers
13 views

Mongoose findOne.stream() returning more than one document

I'm using mongoose to query for one document, and I'd like to pipe it to a stream. My database has multiple account documents. If I simply: db.Accounts.findOne({}).exec(function(err, data){ ... ...
1
vote
3answers
16 views

Node.js - Object.getPrototypeOf

I am trying to set the prototype of an object. However, sometimes I want to set/get the prototype of a string. Surprisingly, however, I get an error when I call: var foo = 'baz'; ...
0
votes
1answer
12 views

Breaking on External Call

I'm able to break on requests in NodeJS. However, when I try to set a breakpoint in a callback function (which makes an external request), it fails to break. Is there some option I need to set to ...
0
votes
2answers
18 views

how to read an incomplete file and wait for new data in nodejs

I have a UDP client that grabs some data from another source and writes it to a file on the server. Since this is large amount of data, I dont want the end user to wait until they its full written to ...
0
votes
0answers
25 views

NodeJS not getting cookie

I'm trying to implement a simple token system after a user logs in and store it as a cookie. I'm pretty sure that this code worked and now it doesn't and I can't figure out what's wrong. So first ...
0
votes
1answer
23 views

How to read multiple csv files in node.js

I'm trying to read multiple csv files and then add them as properties to an object, but the async of node.js really prevents me from doing this. This is the code I tried. var ...
0
votes
0answers
4 views

Yeoman I want sass so set stylus to false

So When I want to include sass into my project it will ask some followup questions and set those to true to include them in to the gulpfile later on but the followup questions for stylus are also set ...
0
votes
1answer
16 views

http.request in intern functional test

I am trying to post to a url to get a username and password so I can log into my website to do functional testing. I start up selenium server and run this basic test with a request to a posting ...
0
votes
1answer
22 views

How to properly use Parse.query.equalTo?

In my web application when the user logs in they should see all the documents they made. However when I test my application, I see all the documents including the ones that I didn't make. I believe ...