Questions tagged as 'nodejs'

1
answer

sails endpoint and model validation

in a project with sails, I have created a car model: // Coche.js module.exports = { attributes: { name: { type: 'string', required: true }, color: { type: 'string', required: false }, price: {...
asked by 01.03.2018 / 17:00
0
answers

hello I am working with nodejs and npm, the moment to start npm start I get this error .. I hope you can help me ... regards

   npm ERR! Linux 4.4.0-116-generic       npm ERR! argv "/ usr / bin / node" "/ usr / bin / npm" "start"       npm ERR! node v6.13.0       npm ERR! npm v3.10.10       npm ERR! code ELIFECYCLE       npm ERR! [email protected] start: electron m...
asked by 28.02.2018 / 20:07
0
answers

Connect to Google SQL Cloud from Compute Engine (NodeJS)

I have a NodeJS project and an SQL instance already configured. I'm trying to connect to the BD (running the app) but I can not get it. I'm reading all the tutorials but I can not connect. I have tried with "localhost", with the IP that the S...
asked by 25.02.2018 / 00:52
0
answers

Display Angular 4 in Linux Web Hosting

in my Web Hosting Linux has 512 of RAM and therefore the ng build could not be completed so I resorted to transfer the / dist (locally generated) to the hosting and when I tried to run it with node it does not work. This is my server.js code...
asked by 09.03.2018 / 03:54
0
answers

EmailTemplate is not a constructor - Problem with nodemailer in NodeJS

Hello friends of Stack I hope you can help me, I am wanting to send emails with NodeJS and the NODEMAILER tool ... but even downloading the project from this page keeps on marking this error that the EmailTemplate is not a constructor. link...
asked by 01.03.2018 / 19:17
0
answers

Search in elasticsearch by number of aggregations

I'm painting a date_histogram with the data I have in elastic, the problem that I find myself with is that I need to give me back all the data I have according to some filters that I passed in the query grouped by interval, if not by an X number...
asked by 22.02.2018 / 11:45
1
answer

HTTP Requests with React-Native do not work on Android

I commented that when working with requests to the server using Fetch and also using Axios , when running on android it shows me the following error: fetch(URL,{ method: 'POST', headers: { Accept: 'application/json...
asked by 22.02.2018 / 16:14
1
answer

PassportJS + Express with Node.js, req.session.passport Undefined

I am new with this framework and I was trying to do a 'Registration and Login' test with PassportJS + Express + Node.js + MongoDB and Redis. The registry works perfectly and apparently the login also, the problem is that when logging in I want t...
asked by 21.02.2018 / 05:05
0
answers

Install dependency that does not have a package.json file

How you can install with npm or bower a project in github which does not have a package.json file, for example, in composer you can create a package of the following way: { ... "repositories": [ { "type": "package",...
asked by 13.03.2018 / 02:24
2
answers

auto_increment at the top mariadb

I am creating an information system fincareport.com and one of my doubts that I have something thoughtful is that it happens with the tables where the column has id with auto_increment of typo Int reaches its maximum value. In case you chang...
asked by 16.02.2018 / 17:14