Questions tagged as 'nodejs'

1
answer

How to configure "npm install" automatic in elastic beanstalk?

Hi, I have an instance nodejs in elastic beanstalk and when I upload my project with eb deploy I have to enter my instance with ssh and execute the command npm install How can I automate the process? Is it configured in this...
asked by 31.10.2017 / 21:17
2
answers

axios.get inside a for

Greetings friends, I'm new with Nodejs and I have this problem, my function receives an array with some ids of products and I need to iterate over that array to consult and bring the image of that product and in this way to build an array with t...
asked by 21.09.2017 / 00:23
3
answers

Error when executing npm run grunt default?

I have the following files for the GruntJS configuration and thus pass my js files to js.min files The package.json file: { "name": "grunt-primerospasos", "version": "1.0.0", "description": "Descripcion de mi primer proyecto en grun...
asked by 19.09.2017 / 07:05
1
answer

Change path node_modules in one function

Is it possible to change the path of the nodule_modules within a function? I have a structure in gulpfile.js in which there are different scripts for different tasks: minify, join, optimize, etc. But there is also a function in which I mak...
asked by 30.08.2017 / 08:27
1
answer

Error with schema, model and controller (mongoose)

I'm developing an app with node.js, mongodb, mongoose and I get an error when I added these files. This is the "model.js" file: var mongoose = require('mongoose'), Schema = mongoose.Schema; var RequestDiffSchema = new Schema({ id: {...
asked by 07.09.2017 / 17:49
1
answer

Error connecting to the Socket server

There is some way to catch if the socket server I'm trying to connect to is (off, not available etc.). This is my code: import http from 'http'; import socket_io from 'socket.io'; In the event of my button try{ var net = require...
asked by 21.09.2017 / 21:02
1
answer

In node js how to control asynchronous programming

If for example I have two lists of numbers and letters. var arrayletras = ["a","b","c","d","e"]; var arrayNum = [1,2,3,4]; arrayletras.forEach(function (valLetras) { console.log(valLetras+": "); arrayNum.forEach(function (valNum) {...
asked by 11.07.2017 / 18:44
1
answer

console.log does not appear with pm2

I have a node.js Parse Server app where I need to use console.log to debug the cloud code, the problem is that by launching the app like this: node index.js the log appears, but if I launch it with pm2: pm2 start index.js the logs of c...
asked by 31.07.2017 / 20:55
1
answer

Change state a select to disabled

I have this design When I give the button assign it saves me the information in a table of sql and I need the select to be disabled and although I update the page always remain disabled . this is the jade table(...
asked by 24.07.2017 / 02:11
1
answer

error when connecting to MSSQL 2008 without instance

I have 2 connections with node using the package mssql var config = { user: 'xx', password: 'xx', server: 'DESARROLLO\PROGRAMACION', database: 'prueba', options: { encrypt: true } } This work...
asked by 13.07.2017 / 22:49