Questions tagged as 'nodejs'

0
answers

NodeJs error Mysql throw err;

The error is that when trying to register a user the records are saved correctly in mysql, but in the console it shows me an error web.post('/registro_home', function (req,res){//AQUI INICIA EL REGISTRO DE NUEVOS USUARIOS var data...
asked by 23.09.2017 / 17:25
1
answer

Error installing Ruby on Rails

This is the 5 time I try to install Ruby on Rails, but it always gives me errors like Gem required, or when installing them when they are not telling me that the gems are corrupted. It also tells me to run the ridk install command but when a dow...
asked by 11.09.2017 / 18:53
0
answers

Get name Host or Mac from Angular client 2

Good morning. I am looking for information on how to obtain the hostname or the mac number of the client that enters the page. All customers are on the same network. some information would be very useful. since thank you very much. g...
asked by 26.09.2017 / 11:59
0
answers

Correct process to update the npm packages?

I am still a little confused as to update and what is the correct order. I have a package ncu to update both global and local packages. In addition to updating the package.json But I'm not sure I do it right I would like to update the gl...
asked by 05.09.2017 / 19:58
1
answer

Unhandled error event using node.js

I'm writing a script for node.js: obj={} require("socket.io").listen( require("http").createServer((req,res)=>{ res.writeHead(200,{"content-type":"text/html"}) res.write('<script src="https://cdnjs.cloudflare.com/ajax/libs/sock...
asked by 02.09.2017 / 19:17
1
answer

export function node in angular 4?

Dear, I need to process an xlsx file and parsed it to json and my idea is to do it in the view with angle 4, I found a library in node which does the process (node-xlsx-json) but I do not know if I could call it from angular or able to do someth...
asked by 08.09.2017 / 01:54
1
answer

Send email with Nodemailer on Locallhost (ReferenceError: require is not defined)

I want to send the data of this form with Nodemailer. But when I click the button enviar in the browser (locallhost) in the console I get the following error: ReferenceError: require is not defined . My version of node is v7.9.0...
asked by 15.08.2017 / 20:41
1
answer

How to route node express to a page with several sections in the html?

Example: [ link When routing like this, var express = require('express'); var home = require('./routes/home'); var bloqueuno = require('./routes/bloqueuno'); var bloquedos = require('./routes/bloquedos'); var bloquetres = require('...
asked by 22.08.2017 / 19:12
1
answer

postman does not show me the data when "registering" with nodejs

In postman I get the following "error", but in the terminal that I am using, cygwin if it shows the data gave me the code: function saveUser(req, res){ var user = new User(); var params = req.body; console.log(params); user.n...
asked by 16.08.2017 / 18:31
0
answers

Upload file via io.socket.request ()

I need to upload a file via io.socket.request (), via form and ajax I could already do the header of the form is: <form method="POST" action="/etc" enctype="multipart/form-data"> But with io.socket.request () nothing comes to my for...
asked by 16.08.2017 / 21:06