I'm using Mocha for testing my apps. Currently, I'm using Makefiles, but I want to switch to Cakefiles. When I run my test through Cake, the colors from Mocha are not displayed on console.  Here's an example:  task 'test', 'te...
I have a weird problem with jQuery File Upload plugin. If I use this sitax:  $('fileupload').fileupload({   url: myurl,   add: function(e, data){     console.log("add event");   },   processalways: function(e, data){     console.log(&...
This code get output of spawned process. What is wrong? node version is v0.10.22  var spawn = require('child_process').spawn; var what = 'java'; var spawned = spawn(what,  ['-version']);  console.log('starting `'+what+...
What I'm trying to achieve  This question is related to another one I recently closed with a horrible hack™.     I am trying to write a script that can be used a step in a context of a CI/build pipeline.      The script is supposed to run Protr...
I am using node.js to create a web application. When I run the application (either by opening index.html on the browser or using the command "npm start" on the terminal) I get two errors:      Uncaught ReferenceError: process is not defined...
I notice that Node defines both process.argv and process.ARGV (capitalized). The later isn't mentioned in the documentation and is, in every case I've encountered so far, the same object.  Is ARGV just a historic holdover, or does it have a p...
I'm building a simple app in which I'm trying to get the buffer, but seems that onaudio process in the following code isn't firing: (PasteBin)  <script> var audio_context; var recorder; window.onload = function init() {     try {...
I'm working with node.js and I want to when there's a request to a url like ./calculate start a new process to make these complex calculations, and I want that process to continue even if the script which called it has finished. Is it possibl...
I am creating a small proprietary game server manager in Node.js; currently it runs the game by spawning via child_process:  var server = spawn(cmd, args, { cwd: 'something' });   So long as the manager continues to run I can pipe commands an...
I got a little bit confused about my node.js application. As far as I thought, node.js runs in a single process. However if I start my application by invoking node app.jsand monitor it with htop, I can see 4 sub-processes running, where I'd expec...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.