Questions tagged as 'nodejs'

0
answers

Run nodejs with php together

I need to use nodejs next to php. I have searched several forums including Stackoverflow but I still can not do it, my project is basically done in pure php but I want to use websockets to be able to implement a module of messages and notif...
asked by 17.05.2018 / 15:45
0
answers

show message with socket.io on the right or left side

hi friends I'm creating a chat in php and nodejs everything works very well so the messages are sent in real time and everything, now what I want to achieve is that when I send the message in Real time show dereho on my screen and on the cli...
asked by 22.05.2018 / 18:25
1
answer

Socket.io, Node, Corodva, can not receive a message from another client that is not the sender

I've been doing this for hours and I do not understand why it's not working for me, besides I've already done systems like chats and I never had a problem, this time is the first time I use Cordova and socket but I can not explain why it happens...
asked by 27.05.2018 / 22:46
0
answers

Send json atraves from ajax to sockect.io

I tried to send an array through ajax to a server which will send it to all connected users but send it empty, if it was sent as normal, that is only the data if it is sent but in json mode and I do not want it to send the array Who is this caul...
asked by 28.05.2018 / 00:43
0
answers

how do I fix this error: "Error [email protected] postinstall: 'node scripts / build.js'"?

I'm trying to create an application with ionic 3 and nodejs 10 and when executing the command ionic start nomproyecto blank. I have this message: npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] postinstall:...
asked by 28.05.2018 / 01:03
0
answers

Error Nodejs server and client

SERVER.JS var express = require('express'); var bodyParser = require('body-parser'); var jayson = require('jayson'); var cats = { speak: function(callback) { callback(null, 'meow'); } } var dogs = { speak:...
asked by 27.05.2018 / 22:56
0
answers

How to execute an .exe from node.js?

I've been trying to run a .exe from NodeJs with the following code: var exec = require('child_process').execFile var fun =function() { console.log("fun() start"); exec('ExecFileTest.exe', function(err, data) { console.log(...
asked by 21.05.2018 / 23:45
0
answers

sinon stub as a module

Hi, I'm trying to do a test in a class written in ES6. The problem arises when I want to do a stub on a function of a module that I import. the code I have is the following: module.js function soapModule(){ this.callSoap = (id)...
asked by 14.05.2018 / 18:03
0
answers

Send a contact form by email with angular 6 and PHP

I have problems when sending the data of a contact form made in Angular 6 by email using PHPmailer. Versions: Node 8.11.1 Angular 6.0.1 rxjs 6.1.0 typescript 2.7.2 webpack 4.6.0 OS darwin x64 Macbook pro high sierra I can not...
asked by 12.05.2018 / 20:29
0
answers

node-gyp rebuild

I have a problem running node-gyp rebuild I already have my python environment variables set gyp info it worked if it ends with ok gyp info using [email protected] gyp info using [email protected] | win32 | x64 gyp info spawn C:\Users\Usuario\.windows-b...
asked by 11.05.2018 / 21:14