Questions tagged as 'node.js'

0
answers

What differentiates an arrow function from a function, say "classica"? [duplicate]

I started a course of nodejs and the instructor said the following code: modules.exports.addNote = function(){} Would be replaced by: modules.exports.addNote = () => {} What would be the difference from one to another and why use...
asked by 17.05.2017 / 08:01
1
answer

How do you associate a calculation function inside an express function to use in routes?

With a very big question, I have a function that does calculations of user metrics and I want to put it in an express function to be able to return a JSON and use it in a route, follow the code to use in the routes: / p> const calculate_followe...
asked by 16.05.2017 / 00:56
0
answers

Ionic 2 Error when generating the build for android in windows 10

$ ionic build android > ionic-hello-world@ ionic:build C:\Users\Gustavo\Documents\Ionic2\like_you > ionic-app-scripts build [20:16:23] ionic-app-scripts 1.3.0 [20:16:23] build dev started ... [20:16:23] clean started ... [20:16:23] cle...
asked by 08.04.2017 / 01:42
1
answer

I'm trying to install Ionic 2 but this is giving error at the time of executing the npm install -g ionic codova

Gustavo@Gustavo-PC MINGW64 ~ $ npm install -g cordova ionic npm WARN deprecated [email protected]: Use uuid module instead npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher...
asked by 07.04.2017 / 07:04
1
answer

Json return error {"isFulfilled": false, "isRejected": false} + Node

I have the following code on the node: var express = require('express'); var app = express(); app.get('/api/events', function(req, res, next) { var events = repositorio.ListAll(); res.json(events);...
asked by 29.04.2017 / 18:12
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
0
answers

Meteor.js is a good framework for agile development? [closed]

I wonder if Meteor.js is a good framework for web development. Lately I'm doing some research and I can not find many recent sources of material. I do not see strength in the Brazilian communities for about 8 months, and this has puzzle...
asked by 15.03.2017 / 04:31
0
answers

"reference path" and "import"

/// <reference path="arquivo.ts" /> import "./arquivo.ts"; What's the difference and when to use each in Typescript / nodejs? Is it necessary to be a ts file or can I directly import a js ? Is a class requir...
asked by 25.02.2017 / 22:09
0
answers

Capture error return in asynchronous function for treatment

I am trying to handle a timeOut error. When the timeOut occurred the application should run again. Initially this loop should be done in an external module that called this, however due to the difficulties I ended up trying to treat both in the...
asked by 11.03.2017 / 20:11
1
answer

Windows Service on Node

I wanted to do a windows service using Node, since it is a very interesting technology that I am learning. So in my search I found several references to node-windows . I found it interesting, it worked very well. However, what worries me is...
asked by 18.03.2017 / 00:01