Questions tagged as 'node.js'

1
answer

How to handle the routes of my app with Express

Guys, I'm using a framework for the front of my app. He stays listening and whenever he clicks on a link he returns the page via Ajax request. Note: I'm using AngularJS. With Angular I can handle routes, but it requests the file and injects t...
asked by 23.07.2016 / 15:10
0
answers

Write image file with nodeJS

I get an image in the image: date format and need to save it as an image on the server, I tried: var imageData = req.body.imagem.replace(/^data:image\/png;base64,/, ""); fs.writeFile(url, imageData, 'base64', function(err) { if(err) r...
asked by 28.06.2016 / 23:05
0
answers

graceful-fs node problem

I have a problem with the graceful-fs module. When I run the command in gulp to run the plugins (imagemin, clean) in my project the message:    (node: 4892) fs: re-evaluating native module sources is not   supported.If you are using the gr...
asked by 19.05.2016 / 02:54
0
answers

How to invoke a url on the node into an html page? [closed]

My files are these ... regressao.js ( regre.list(data) That computes the regression and returns values for atualizaPa.js ( atualPA.atua(data,palavra) var db = require('../config/db_config.js'); //Definição do CON...
asked by 05.08.2016 / 20:04
0
answers

TypeError: Object [object Object] has no method 'listen' [closed]

const DEFAULT_SERIAL_PORT = "/dev/ttyUSB0"; // Dependancies var fs = require('fs'); var vm = require('vm'); var events = require('events'); var cache = require('./plugins_cache.js'); var util = require('util'); var enocean = require(...
asked by 24.05.2016 / 10:18
1
answer

How to save php session in MongoDB and retrieve data in NodeJS

I'm running a server in php and another in nodejs trying to get a simple authentication since every session runs on php and nodejs it simply processes some events however, and authentication is needed as I can with Mo...
asked by 30.05.2016 / 15:21
0
answers

Problem with NPM NodeJS Compass

I have a problem here with NodeJS. First slash the command: npm i Then run the command: grunt Here's the error: Warning: Couldn't find the 'compass.bat' binary. Make sure it's installed and in your $PATH Use --force to...
asked by 01.05.2016 / 01:12
0
answers

Mean Stack Running the first project

Good afternoon guys, I'm trying to run the mean stack on my machine (Ubuntu 14.04, 64bit), I followed the site step by step and everything seemed to go well when I started up the cam in ternimal everything works fine, I'm going to access the url...
asked by 07.05.2016 / 17:20
0
answers

Why is the variable the same value for different instances?

I have the following code File 1: var fbuser_firstName; var FB = require('fb'); var User = function (sender) { FB.api('/' + sender, 'get', {access_token: process.env.PAGE_ACCESS_TOKEN}, function (response) { User.initFbProfileIn...
asked by 09.05.2016 / 02:58
0
answers

NodeJs for real-time applications

Recently, with the arrival of Angular2 beta, I have been looking for more information regarding real-time applications. I currently work with AngularJs (1.x) on front-end with apache server on MySql & Php to...
asked by 21.03.2016 / 00:36