Questions tagged as 'node.js'

1
answer

What is the best way to use Node dependencies?

Introduction: Let's take a practical example so that it's simple to understand ... I want to use the Bulma framework in my project, so run the following command: $ npm install --save-dev bulma Tchanram! Now I can find both the bulm...
asked by 23.10.2016 / 07:21
2
answers

How to convert a file in javascript format to ts format?

I know that the TypeScript language is used to compile files in JavaScript. But I wonder if there is any tool that makes it possible to do the reverse. Is there any way to convert a JavaScript file to a TypeScript structure, something automat...
asked by 14.10.2016 / 16:05
1
answer

Realizing two queries in SalesForce generates Undefined values

I'm running two queries in SalesForce. However, when I try to use the values received outside the scope of the query, they are undefined. Here is the code: var conn = new jsforce.Connection(); conn.login('email', 'password', function(err, res)...
asked by 10.05.2016 / 18:58
1
answer

Inserting mongodb documents

I have the following document (Schema): var CandidatoSchema = new Schema ({ id_login: Schema.Types.ObjectId, nome: String, cpf: String, dataNascimento: Date, sexo: String, estadoCivil: String, endereco: { en...
asked by 02.04.2016 / 05:18
1
answer

Socket.io: module can not be found

I was playing with Socket.io, everything working fine, when I gave the command node app.js from one time to another NodeJS returns me an error (it was working before)    Can not find module 'socket.io' I looked for another example...
asked by 07.01.2016 / 16:33
1
answer

Request Problems using superagent

I'm trying to request using the library superagent on my server nodejs , I'm following the documentation, however, is not working. Here's my code nodejs : var express = require('express'); var app = express(); var request...
asked by 08.01.2016 / 19:56
1
answer

Node.js - Function returning the value of the query?

This is the following I tried to search but I did not find any solution, so I tried to create a function in the model of my application that will return the data of the query in the database. This function would be called in my controller which...
asked by 09.08.2015 / 22:50
1
answer

Node.js - Get input values?

There I go again. I have a function where you make a record in the MySQL database it is working. But when trying to get data from an input I get the following error:    TypeError: Can not read property 'user' of undefined Node: exports....
asked by 11.08.2015 / 21:40
1
answer

Errors installing Phonegap / Cordova - NodeJS

Your environment has been set up for using Node.js 0.12.6 (x64) and npm. C:\Users\Alexandre>npm install -g phonegap npm **WARN** addRemoteGit Error: not found: git npm **WARN** addRemoteGit at F (C:\Program Files\nodejs\node_modules\npm\...
asked by 05.07.2015 / 21:27
1
answer

GruntJS error installing plugin using Vagrant

I try to install puglin    npm install grunt-contrib-uglify --save-dev In my project using vagrant and gives permission error follows below: npm ERR! Please try running this command again as root/Administrator. npm ERR! Linux 3.13.0-61-...
asked by 21.09.2015 / 04:41