Questions tagged as 'nodejs'

1
answer

install Node and do not run npm (npm: command not found)

I have a problem executing npm is as if it were not installed, I have already tried to uninstall node and reinstall but it still does not come out, so I have read it is installed /usr/local/bin/node but I search the route and it is...
asked by 06.02.2018 / 22:26
3
answers

Form of a JSON [duplicate]

To explain my problem better, I have this JSON: { "Person": [ { "Id":1, "Type":1, "Extra": [{ "Number":88888888, "Code":506 }] , "Personal":...
asked by 10.09.2018 / 14:11
2
answers

Get date in Node.js [closed]

I need to get the system date with date, time, minutes, seconds and milliseconds in node.js and then convert it to an integer. Any ideas? Thanks !!     
asked by 10.09.2018 / 15:59
1
answer

Error config file mssql

I'm trying to connect to my local database and these are the parameters I have: var config = { user: 'Eduard-PC\EdwarD', password: '', server: 'EDUARD-PC\SQLEXPRESS', database: 'nodejslogin' }; I get the following error:...
asked by 06.06.2017 / 00:47
1
answer

Create routes for node and Express server

I am creating a server with node, which is the following: var express = require('express'); var app = express(); app.get('/',function(request,res){ res.sendfile('/index.html'); }); app.listen(3000,function(){ console.log('El servidor E...
asked by 14.03.2017 / 19:38
1
answer

how to add 2 properties of 2 different objects in js (nodejs)

I have these 3 objects const leagues = [ { id: 1, country: 'England', name: 'Premier League' }, { id: 2, country: 'Germany', name: 'Bundesliga' }, { id: 3, country: 'Netherlands', name: 'Eredivisie' }, { id: 4, country: 'Spain', name:...
asked by 28.12.2018 / 07:36
1
answer

I can not do post Node js Router Express

I am using Express and Router to create the links of my api, but for some reason when I try to post it throws me an error 404 , but if you find me any get . When I check the browser console I can see that it does the post with the parameter...
asked by 31.12.2018 / 05:23
2
answers

How to validate date ranges with nodejs

I have a start date and an end date. I would like to know how to perform a function that validates if today's date is within that range of dates.     
asked by 24.03.2016 / 14:53
4
answers

Query about nodejs and android, use api or queries to the bd

I want to know if to make an application on android, should I connect and make queries directly to the bd, or use an API? , I have currently made a web in express / nodejs and mongo using jade and angular for the management of templates and part...
asked by 18.10.2016 / 05:49
2
answers

Problem with promise when collecting values that returns

Within a function, I need to call another in which I have used promises and return a series of data that I need to follow. My problem is that I do not know if I'm doing it right or not, because does not throw an error but it returns an empty...
asked by 15.11.2017 / 09:57