Questions tagged as 'nodejs'

0
answers

How should I make a console.log to see registry errors to the database?

Hello, I am creating an application and when the user registration is done, the data does not reach the database. How and where should I do the console.log or debugger to see the errors? I know that doing console.log or debugger could see the er...
asked by 22.05.2018 / 12:42
1
answer

I need help with a Query on a Backend- RestAPI of mongoDB using mongoose

This is the model of the object to which I ask the question const mongoose = require('mongoose'); const userSchema = mongoose.Schema({ _id: mongoose.Schema.Types.ObjectId, email: { type: String, required: true}, nombre: { type: String, requi...
asked by 24.06.2018 / 02:00
0
answers

Why are not images uploaded to Phaser?

I am starting to use phaser to create games and I found a problem that I can not find for more tests that I did. I can not show the images I'm uploading. You only see a small square in the center, (I show it in this capture: when you should see...
asked by 17.12.2018 / 16:49
0
answers

What does this WARN mean in the Node terminal?

Hello, I am uploading libraries to my project with "npm" and the following message is continuously displayed:    *** C: \ Users \ victor \ Desktop \ michaelgram & nt; npm install --save page npm WARN [email protected] No repository field. npm...
asked by 03.05.2018 / 18:13
1
answer

Error with imagemin script in NPM

I am learning how to create a distribution folder that contains the files that can be implemented on a web server hosting your project. This distribution folder will be compiled from the files of your project using several NPM packages and scrip...
asked by 24.12.2017 / 18:39
1
answer

Problem with bookshelfjs, error in the return of data from relationships

I am interested in applying node with bookshelfjs (ORM), with the bookshelfjs-eloquent plugin and I have a problem when it comes to taking the data of the relations an FK, since all the relations functions return me the length is 0 , having...
asked by 10.01.2018 / 19:29
1
answer

Does the order of the fields matter when a document is created in MongoDB?

I am learning to use MongoDB and NodeJS. While working, I was wondering if it matters the order of the fields when creating / inserting a new document within a collection. I leave an image to see what I mean, in it you can see how to creat...
asked by 27.07.2017 / 23:02
2
answers

How to send an object / array from node to pug (jade) and render it?

Since node, I have something like this: var nombres = ['Saab','Volvo','BMW']; app.get('/', function(req, res){ res.render('index', {nombres: nombres}); }); then in pug: - var nombres1 = {nombres}; html(lang="es") head title= "Itris INF...
asked by 26.07.2017 / 02:31
1
answer

404 error in node application js in heroku

I'm trying to replicate an example to receive some data in real time to emulate adding a subject, but no matter how much you upload and / or change the form, that error still exists. Error POST https://nuevohorario.herokuapp.com/enviarAsign...
asked by 11.06.2017 / 05:21
3
answers

Know if a file has changed its content with Node.js

On my server Node.js I would need to know if the content of a file has been modified, and if it is true, read it and send it by means of socket.io . The code I have, just reads the content the first time (when the page is reloaded)....
asked by 19.07.2017 / 21:16