Questions tagged as 'nodejs'

0
answers

virtual Host + socket.io Error 404 - Node.js

Hi, I have a problem and I have a connection to my server.js (I'm not in my local, localhost perfect function) I'm using node.js and use socket.io for the results of my requests, the detail is that on my local server I can not use localhost / an...
asked by 03.08.2017 / 00:02
0
answers

Error: spawn EACCES - Derivados debian - ionic

Hello, such friends have a problem with ionic when running an app created. At the time of typing the command "ionic serve" I vote this result and the truth is strange because I find solutions to the error but nothing compared to mine since it st...
asked by 15.09.2017 / 16:31
0
answers

undefine in nodejs when creating folder

From the database I'm getting ip and id , and when I want to create a folder and put the ip as the name I get undefined and the folder is created but with the name undefined, inside of that folder I am creating a photo and th...
asked by 23.07.2017 / 18:21
0
answers

How to connect middlewares in Express - NodeJs?

I have problems to apply postcss-middleware after the sass-middleware in an API in express, the Sass middleware is applied but not the postcsss middleware. import autoprefixer from 'autoprefixer'; import express from 'express'; import pug from...
asked by 08.09.2017 / 23:37
0
answers

Help in Mongoose and mongoDB with linked queries

I'm passing a query I made and it works on mongoDB to mongoose and it gives me an error. The query in mongo DB is: db.facturas.find({ _id: {$in: db.detalles.distinct("id_factura",{category: ObjectId("5889eae21ffcc6da2c6b4ae4")})}...
asked by 14.08.2017 / 23:36
0
answers

How to send data through a post request in NodeJS to the database in MongoDB?

I'm doing an App, which has a registry for users. I try to make that when the user enters the data they are sent to the database through that POST request. The database appears connected to me, but I can not find the code to send the data. Th...
asked by 23.06.2017 / 17:34
0
answers

Error "dup key: {: null}" mongodb

I have a mongoose schema like this: const mongoose = require('mongoose'); const Schema = mongoose.Schema; const thingsSchema = new Schema({ userId: { required: true, unique: false, type: String, }, }); module.ex...
asked by 06.06.2017 / 22:22
1
answer

How to examine objects in Node.js?

I assign a variable to an object, I do console.log with it with intention to find out and examine what is inside the object, but when I start the code in console ( CLI ) ( PowerShell ), this console.log simply returns the following: [object]...
asked by 22.05.2017 / 14:50
1
answer

I get this error cant set headers after they are sent

Hello people, I am using passport-local and what I want to do is show the user when he / she does the login My code is this var passport = require('passport'); var localStrategy = require('passport-local').Strategy; var User=require...
asked by 21.05.2017 / 01:40
1
answer

Nodejs, update data in mongodb

I'm trying to create an api where I receive 2 parameters, the id of the session and the seat that needs to be reserved [ { "id":1, "tanda" : "7:30am" , "asientos" : [ 0 , 0, 0, 0, 0 , 0, 0, 0, 0 , 0, 0, 0, 0 , 0,...
asked by 01.08.2017 / 19:43