Questions tagged as 'nodejs'

0
answers

sockets, how many connections are allowed in a port?

I have this script in nodejs. it works in the following way, I have three gps, which point to my server, at the moment I had to make my ip public and I have assigned a port where the GPS data will arrive. 'use strict' const net = require('net...
asked by 27.08.2018 / 22:06
0
answers

How to install npm correctly on fedora server 28?

Run the command dnf -y install nodejs as root. When I want to see the version of installed node I see it correctly. But when I run npm -v it says "-bash: / usr / bin / npm: Permission Denied"     
asked by 14.09.2018 / 20:44
1
answer

I can not read a data inside an array within a function

I'm stuck a while ago with a task that I have to do. The objective was to make an api rest with an enpoint to objeter data and another to post them. So far, everything works, but now I must put a condition to that post, which depends on my funct...
asked by 28.08.2018 / 21:43
1
answer

Consume API Node services

Dear, I have a microservice (a) or a small API that requires you to use the services of another API (b), which consists of about 4 ENDPOINT (Address, municipality, province, region, etc). I am currently using a NODE module called request: c...
asked by 23.08.2018 / 18:38
1
answer

Does anyone know how Dinamic could make a Slider with Nodejs - express - mongodb?

<div id="myCarousel" class="carousel slide" data-ride="carousel"> <!-- Indicadores --> <ol class="carousel-indicators"> <li data-target="#myCarousel" data-slide-to="0" class="active"></li> <l...
asked by 29.08.2018 / 02:09
0
answers

I have problems with nodejs + ajax + cassandra

I have the following problem:  I'm trying to develop an App, with Nodejs + cassandra, but inside a form that I have, when calling an ajax method which is inside the same form (.jade) it gives me an error here is the code: script. function...
asked by 29.08.2018 / 02:37
0
answers

How to show different content to each user of my web app? MERN stack

I'm trying to make a voting app where you can only vote once, for this I collect the ip of the users who vote and then compare these saved ip with the one of who is using the app (to know if I already perform your vote) and so show him one thing...
asked by 22.08.2018 / 19:58
0
answers

Incomplete answer Soap WebService Node.js

It is required to send the following information: '<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/" xmlns:max="http://www.abc.com/mx">'+ '<Header/>' + '<Body>' + '<CreaIDENT>' + '<MXINCIDENT>' + '<ma...
asked by 23.08.2018 / 23:48
1
answer

Problem getting value in NodeJS

I have a problem getting or filling a variable within a promise. the code is: var _TOKEN = ''; client.metodoGet(clientId, clientSecret) .then(function () { _TOKEN = client.authentications["XXXXXXX"].accessToken; console.log(_TOK...
asked by 28.08.2018 / 22:04
0
answers

ERROR in node_modules/@angular/cdk/table/typings/cell.d.ts (41,47): TS1005 error: ',' expected

The present error appeared after executing my project of angular in another computer, the way in which it was installed was only with a npm install to then execute ng serve. I have eliminated cache, downloaded the version of npm that was in 6...
asked by 29.08.2018 / 01:58