Questions tagged as 'nodejs'

1
answer

node js synchronous query

I'm trying to execute a query to a mysql database after getting some ids from another query, but it sends me the callback blank, so it responds before finishing the query to the bd I do not know how to solve it. imgmodule.darImagen...
asked by 03.09.2018 / 23:19
0
answers

node.js the return value within a forEach

I have the following node.js program const fs = require('fs'); function walk(dir, done, emitter) { let results = {}; emitter = emitter || new (require('events').EventEmitter); fs.readdir(dir, (err, list) => { let pending = list.lengt...
asked by 03.09.2018 / 20:27
1
answer

Error when starting new Angular project

I have a problem every time I want to start a new project in angular with the command I do not know what to do and I already update npm, node, angular and typescript to the latest version to see if this solves the error but nothing. Any way I ca...
asked by 31.08.2018 / 23:11
1
answer

Error executing the ng generate component command

I updated my angular project 4 to 5 and everything works fine. But when I execute the ng generate component nameComponent command it throws me this error Schematic input does not validate against the Schema: {"path":"/src/app/...","pref...
asked by 29.08.2018 / 18:26
0
answers

Configuring Babel with target presets (browser support)

I just started getting a bit more into the babel setting when I had to start using babel-polyfill . Well, my doubt at first seems obvious but I can not find it in the docs. I have the following configuration, where I support t...
asked by 04.09.2018 / 17:13
0
answers

When installing dependencies with NPM I get error 405

I'm trying to reinstall the dependencies of my project in Angular since I change my computer and when I try to do it, I always get the same NPM error: npm install The log: Please help. and thanks in advance.     
asked by 06.09.2018 / 19:34
0
answers

Error with requires in electronJS

Dear, I have an error that is driving me crazy, I can not find the solution to something as simple as requiring a JS file from my app in electron. I want to include my JS file as the image shows: And he tells me this error:     
asked by 04.09.2018 / 21:26
0
answers

How to make a trigger (trigger) in mongodb?

What I want is to make a record of all the movements made in the database, for this I plan to use a table blog which has the following structure: bitacora = { _id, action: String, userId: String, create_at:{ type: Date, defau...
asked by 28.08.2018 / 09:25
0
answers

PDFKit and Node JS; when creating PDF document How to send it from the server to the client?

my problem is as follows; I have a web application created with NodeJS that shows a form where users add data that will include a PDF document created with PDFKit, by clicking on the submit button the form is created and the document remains o...
asked by 28.08.2018 / 05:49
0
answers

Error executing commands in angular / cli

I updated my angular project 4 to 5 and everything works fine. But when I execute some command to generate classes, components, services, etc, it throws me an error, example: ng generate class miClase "C:\Program Files\nodejs\node.exe" D:\An...
asked by 27.08.2018 / 16:01