Questions tagged as 'node.js'

1
answer

Download PDF Node.js

I am using the Request to download a link ticket that is in pdf. It turns out that I can not see the pdf that I downloaded, the API developers say that it is in UTF-8, I've set it all but it still does not work. request app.get('/', funct...
asked by 26.04.2016 / 03:22
0
answers

TypeError: Can not read property '1' of undefined

Good morning, I need your help. I am receiving data coming from the serial port "/ dev / ttyUSB0", my goal "is to recover some information (temperature and humidity) and replace it on the object enoceanRecords . // Constants const DE...
asked by 26.05.2016 / 09:23
1
answer

Can not read property 'nodes' of undefined

I'm getting the ERR below when trying to implement a styling in my project with Stylus . The same goes for background: url(...); and I think for any other related attempt. I found in Github some similar problems, but none of the so...
asked by 22.04.2016 / 05:05
1
answer

send email with Nodemailer

I created the following Model with Nodejs: 'use strict' function UserDAO(model) { this.model = model; } UserDAO.prototype.email = function(callback) { //TESTE de email var filePath = 'services/content/test.html'; var fs = require('fs');...
asked by 22.04.2016 / 19:00
0
answers

M command "/ usr / bin / nodejs" / usr / bin / npm "" install "" forever "" -g "

I tried to install a module and found some irregularities. I wish that it is precisely. I found it to be a conflict between /usr/bin/nodejs and usr/bin/npm directories. I tried to install nodejs-legacy but it did not work....
asked by 22.06.2016 / 08:34
1
answer

Read array value in jade

I have the following array created in my controller: var data = []; for (var i = 0; i < array.length; i++) { nfejs(array[i], function(err, nfe) { var itemNfe = {}; itemNfe.name = nfe.identificador.getNumero(); da...
asked by 27.04.2016 / 23:51
2
answers

How to remove unused packages in the node_modules folder with the NPM command?

I installed some packages of NodeJS via npm install . But then I decided to remove some. Even when I install again, the folders of the packages I'm not using remain there. In% PHP%, when we no longer use a package (that is, we re...
asked by 14.03.2016 / 15:27
0
answers

DLL error while installing node.js in Windows 10

When I install node.js in Windows 10, the following message appears:    There is a problem with this windows installer package. The required DLL   for this install to complete could not be run.Contact your support   personel or package vendor...
asked by 09.03.2016 / 23:29
1
answer

NodeJS: page not found

I was doing my application, but when I refresh the page the browser returns me that page is not available. I'm going to post my code so you can tell me if there's anything wrong. JS var http = require("http").createServer(servidor); var i...
asked by 07.01.2016 / 17:07
1
answer

Locale database + node.js

I'm working on a project using node.js. I need to use a local database, but I wanted to reconcile performance with security, and if possible, portability as well. I only know MS Access (.accdb) and Sqlite3. [MS ACCESS] Prós: Senha...
asked by 13.11.2015 / 20:08