Questions tagged as 'node.js'

1
answer

Error to use mongodb filter

I'm having an error trying to run a filter on the database. var params = '{"cd_entidade":"'+ vcd_entidade+'"}'; Movmaterial.find(params).toArray(function(err,docs){ if (err) throw err; console.log(docs); } There was an error that I...
asked by 26.06.2018 / 02:09
1
answer

Error updating Node.js in Windos 10 64-bit

I had the Node.js 5x installed and I downloaded it and started installing the Node.js 8x and the Wizard did not install and reversed the entire operation and now I do not have Node.js and npm installed. My Windows is the 10 64 bit The vers...
asked by 14.06.2018 / 05:40
0
answers

Passing data via HTML post JAVASCRIPT

Hello, I'm doing a college work, an academic control, and when trying to remove a tuple from the database passing the "id" of the tuple via post form, the value arrives either empty or undefined. Here is the code: <tbody> <...
asked by 14.06.2018 / 05:55
0
answers

Socket.IO Problem after an active time

Hello, first of all I apologize for the code, I am giving maintenance and as soon as I can solve this problem I will work on it better with OO, MVC etc. My problem is, I'm creating an auction room where everyone in it can bid, it's already wo...
asked by 14.06.2018 / 03:25
0
answers

Error code ETARGET

I already downloaded several versions of node and am trying to create a react application and it is giving the following error: Could anyone help me?     
asked by 12.06.2018 / 19:56
0
answers

ionic serves --lab does not work right

Hello, I installed the ionic on my notebook with Win10. I created a project and I use the ionic command --lab and it opens the project interface in my web browser, but when I make code changes the interface does not update. What should I do?   ...
asked by 25.06.2018 / 19:16
0
answers

Node return page

I have the following code block server.get('/energy', (req, res, next) => { { const getScript = (url) => { return new Promise((resolve, reject) => { const http = require('http'), https = require('https') le...
asked by 15.06.2018 / 21:15
0
answers

Doubt loading the rest of the view

I'm following a video lesson and a question has come up. I created two folders one for the front (which is run by the http-server port 8080 server) second folder to the back (which is run by nodemon port 3000) But unfortunately it does...
asked by 21.06.2018 / 07:25
0
answers

Node Error: ER_PARSE_ERROR when trying to insert into mysql

I have a NodeJs application and I am trying to insert some records in a MySql form, but when I run the code below I get the following message. Code: CadastroModel.prototype.cadastrarEstudio = function(estudio, callback) { var sql = 'INS...
asked by 10.06.2018 / 08:06
1
answer

Nodemon loads directory index but does not open index

I have a problem using Nodemon, whenever I start or restart the server for it, instead of printing something on the console or loading a page, it is only in the directory index. It takes several minutes for it to finally respond and load the pag...
asked by 12.06.2018 / 00:25