Questions tagged as 'node.js'

2
answers

Node + Pokeapi "Error: connect ECONNREFUSED 127.0.0.1:443"

I'm new to the Nodejs world, I wonder why I can not test the most basic document algorithm link My code looks like this: var Pokedex = require('pokedex-promise-v2'); var options = { protocol: 'https', hostName: 'localhost:443', vers...
asked by 26.04.2017 / 04:08
1
answer

How to install version 6.10.3 of the nodejs without being through the terminal

How do I install the 6.10.3 version of nodejs in ubuntu? When I install them from the terminal (sudo apt-get update sudo apt-get install nodejs) it always installs version 4.7.2. Is there another way to install other than the terminal? thankful...
asked by 09.05.2017 / 19:40
0
answers

Error in 'grunt build'

I'm not fully understanding the reason for this error and how to solve it. npm ERR! Linux 3.13.0-116-generic npm ERR! argv "/home/fmessias/.nvm/versions/node/v7.9.0/bin/node" "/home/fmessias/.nvm/versions/node/v7.9.0/bin/npm" "run" "build" np...
asked by 20.04.2017 / 20:04
1
answer

Error in Node.js Module.js 472 throw err;

I am creating an API on node, for request with my application. But this error appears, claiming that this folder does not exist, but in the code I'm not calling it anywhere. module.js:472 throw err; ^ Error: Cannot find module 'C:\U...
asked by 29.03.2017 / 22:03
1
answer

When I store the ID it disappears with some numbers

I was doing an application and in it I needed to store the id that is pretty big type This was my id 173782035419103232 but when I get to the database it changes to 173782035419103230 how can I do it so it does not round the number (Use the Mong...
asked by 15.04.2017 / 22:20
0
answers

Error sending - Nodemailer

I configured my nodemailer as follows let transporter = nodemailer.createTransport({ port: 465, host: 'host do cpanel', auth: { user: '[email protected]', pass: 'minhaSenha' } });...
asked by 22.03.2017 / 19:19
1
answer

How to use the UrlFetchApp class with node.js

I'm trying to use a Google Apps Script class, but I'm having trouble finding information on how to use the classes contained in Apps Scripts and running on the node. Ex: converter.js if (process.argv.length < 3) { console.log('Usage:...
asked by 03.04.2017 / 21:03
1
answer

Error in separating responsibilities

On the node, I created the following template to represent my user: "use strict"; var Sequelize = require('sequelize'); module.exports = function() { return sequelize.define('user', { ID_USER: { type: Sequelize.INTEG...
asked by 15.03.2017 / 15:45
0
answers

Error when using SQL with javascript

I would like to know what is wrong with these lines, especially in the query, since it is not working: pool.query('SELECT * FROM 'info' WHERE 'id' = 1', function(err, row1) { var jogo = row1[0].jogo; var numerojogadores = row1[0].numer...
asked by 27.03.2017 / 00:20
1
answer

Capture my own number of followers

I'm trying to get a get of my number of followers via the Instagram API. I already have my clientId , my userID and my accessToken . Using instafeed.js is now able to access the feed. But whenever I try to do a get to any url: https:/...
asked by 03.03.2017 / 01:45