Questions tagged as 'nodejs'

1
answer

I can not use the 'fs' module, in windows

I have a problem, I try to use the 'fs' module of NODEJS, but I get the error, that could not be found. What I did, before doing the post. Install manually, given some post. npm install -g fs Realize, the following. npm cache...
asked by 25.05.2017 / 17:26
1
answer

Enter data with SQL SERVR in node.js [closed]

I would like someone to give me an example of how I can enter data in a SQL SERVER database from Node.js please! Thanks:)     
asked by 04.09.2018 / 18:34
3
answers

MongoDB. Is there a way to relate collections?

I am working with a CRUD app with the MEAN stack to keep track of patients, I have a requirement to add a medical history to the patient with the particularity that when you delete a patient, only the patient is deleted, and your medical history...
asked by 25.08.2017 / 23:47
1
answer

Search by date model find mongoose not working

I am trying to find x objects by date, (the receipt of a form, I know it arrives in UTC format before the real one), I do the following. First I create the object console.log(datos) // Contiene los datos correctos , fecha ,datos ,etc Event...
asked by 19.10.2016 / 15:16
1
answer

npm run dev error windows 10

I have errors with npm run dev, I made a npm rebuild, then a npm install, to try again with npm run dev, and it shows me these errors: # npm run dev > [email protected] dev c:\xampp\htdocs\site > cross-env NODE_ENV=development webpack-dev-server...
asked by 12.07.2018 / 07:12
1
answer

How to create an object where the keys are the names of another object

if we have the objects const leagues = [ { id: 1, country: 'England', name: 'Premier League' }, { id: 2, country: 'Germany', name: 'Bundesliga' }, { id: 3, country: 'France', name: 'Lige 1' } ] const teams = [ { id: 1, count...
asked by 28.12.2018 / 17:06
1
answer

Angular doubt, forms and counters cycle for

I have to do a quiz where there are around 40 questions, in these each question has 3 options. What I want to do is that from an angular count how many times you chose each of those 3 options and save it to my database. that is all in the backen...
asked by 24.11.2018 / 16:47
1
answer

node error: module.js: 538 throw err

129/5000 I really do not know what kind of problem it is, but apparently every time I want to use the js it does not work .Thanks for answering. .     
asked by 27.11.2018 / 01:39
1
answer

Validate ID in the database

Very good people ... I need a little help ... I have a form made by which the user must enter a name, ID, sex..by which then it is saved to a database ... I have to do a function in javascript to check if the ID was already entered .. If this ID...
asked by 03.09.2018 / 20:30
1
answer

Problems with Ionic

When creating an ionic project in the www folder, I am not creating the js files and more than I normally would, or I do not know if this is currently the case. I appreciate the help to get out of doubt. The first image shows the www folder m...
asked by 07.06.2017 / 16:57