Questions tagged as 'nodejs'

1
answer

How can I fix this error in expressjs in the view? [JADE]

I'm using express with jade. I am trying to do a factorial with an entry, but I can not visualize the answer for example if there was input 5 the result is 120, but show a big error. How can I do this? Can you please help me? views/facto...
asked by 11.10.2016 / 21:26
1
answer

Processing from NodeJS to JSON

I am trying to process from NodeJS to JSON, the idea is to develop an "autocomplete" text field with AngulaJS, but I am with the problem that the driver does not work correctly to be able to show the data in the HTML. I was testing it with w3sch...
asked by 20.08.2016 / 05:45
1
answer

problems when updating from an array in mongo and nodejs using async

Hi, I have a problem I want to update, a database from an array that I have, to cycle the array and every key that exists in the db that I update ... I have written the code, but I only update the last record .. I do not know why. var...
asked by 16.08.2016 / 17:55
1
answer

node_redis - I can not return a value from inside a query

I'm going crazy with a problem that I can not find a solution for. I can not return values from inside a query to Redis. I'm using the Redis client for NodeJS node_redis ( link ). The problem is this: I wrote a function to get the connection...
asked by 19.08.2016 / 23:43
1
answer

undefined id in my middleware

Edit: what the middleware does takes the url part of the id and uses it to search the database for a special record but tells me that the id in the find_image.js is undefined so I guess it does not is passing the parameters to the middleware....
asked by 18.07.2016 / 20:21
1
answer

Using CO in node with node-mysql

I would like to know if someone can help me with the use of CO in node using node-mysql to build queries where one depends on the result of another. This is the same as using async / await but without needing Babel. I'm trying to do a function w...
asked by 22.11.2016 / 20:09
1
answer

How to access the attributes of an array of pointers on parse.com

I have the following problem I can currently get the [object Object] of each order, however I need to access its attributes and try the include function but I can not access it send me undefined link I leave my code and hope you can help...
asked by 27.09.2016 / 17:28
1
answer

middleware continues after the next

I have the following question with a middleware, if the middleware works the following way: function middle(variable){ // codigo codigo return function(req, res, next){ if(hrk !== 'jfk'){ if(variable){ next(); }...
asked by 08.03.2016 / 20:03
1
answer

Error node-inspector

I have used note-inspector for more than 1 year and I have never had problems, but now I miss this error and never get to start the debug. What could be the cause and solution? /deep/ combinator is deprecated. See https://www.chromestatus.c...
asked by 15.04.2016 / 15:51
0
answers

connect swi-prolog with nodejs through websockets

I am trying to connect swi-prolog with nodejs but, without success. I have looked in the official documentation of swi-prolog but, I see it very confusing. I have a server in nodejs running on port 8080. What I wan...
asked by 24.05.2016 / 04:05