Questions tagged as 'node.js'

0
answers

Nodejs - Inclusion of data in collection with mongoose

I would like to add an array of medals and challenges in my project by default. This way, I can create a medal and a challenge, but one at a time. // Save new projeto projetoController.save = function (req, res) { var projeto = new Projeto()...
asked by 07.02.2018 / 18:09
1
answer

Requesting Application / PDF generating file with wrong information [AngularJS + NodeJS]

I have a totally Restless AngularJs + Node (Express) application. The back-end serves only to validate requests and route to other applications, which have business rules. At the moment, my front sends a request to generate a pdf, something l...
asked by 17.02.2018 / 01:22
0
answers

I can not execute a query within a socket event using node.js (socket.io), why?

Here's what I did initially: var http = require('http'), express = require('express'), mysql = require('promise-mysql'), mysql2 = require('mysql'), parser = require('body-parser'), path = require("path"...
asked by 04.02.2018 / 19:17
0
answers

How to resolve the MSBUILD error: error MSB3428 of node.js

I am trying to install a package located in the directory that I am with the command npm install of node.js, but after installing some of the packages I get the error:    npm install error - MSB3428: Could not load the Visual C ++ comp...
asked by 01.02.2018 / 17:05
0
answers

Error passport-http-bearer, can not read property 'realm' of undefined

I'm doing a login system, however it's giving an error inside the passport-http-bearer module. Cannot read property 'realm' of undefined this._realm = options.realm || 'Users'; Project in Node.Js     
asked by 30.01.2018 / 20:45
1
answer

Syntax error - Node.js Discord Bot

I'm having this error: C:\Users\Administrator\Desktop\Bot BackForTeam>node app.js C:\Users\Administrator\Desktop\Bot BackForTeam\app.js:148 }); ^ SyntaxError: Unexpected end of input at createScript (vm.js:80:10) at Object.runIn...
asked by 04.02.2018 / 22:56
0
answers

How to customize the Yarn package folder structure?

With Bower recommending migrating pro Yarn as an alternative to front-end dependency management, I decided to abandon it and study more about the Yarn . And yes, the news on the recommendation is old, but I just learned recently. The po...
asked by 31.01.2018 / 15:44
1
answer

how to pass the MARK variable that receives an Array per Javascript URL to another page? what am I doing wrong?

function escolheControle(c) { controle = c; marca =todasAsmarcas[controle]; window.location="marcaWebkit.htm"; console.log(controle+' controle-----'); console.log(todasAsmarcas+' todasAsmarcas-----'); } var marca; var todasAsmarcas = new Ar...
asked by 22.01.2018 / 15:16
0
answers

Is there any way to set up a CRUD with boostrap, javascript and node.js?

Hello everyone, I've been studying programming for a year now and I'm having trouble finding a way to build a crud that has javascript, Bootstrap and node.js? I did not find any tutorial to help me in this case, until I know how to create the sys...
asked by 02.02.2018 / 04:44
1
answer

How to create a file if it does not exist?

Hello, I'm doing an application that will have data in JSON and would like to know, how to create a file if it does not exist? I'm using FS. Thanks in advance.     
asked by 20.01.2018 / 22:00