Skip to content

Commit

Permalink
Fix spawning child process on Windows (see nodejs/node-v0.x-archive#2318
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Darthfett committed Sep 18, 2014
1 parent 8a4b557 commit 5e694af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

var fs = require('fs');
var path = require('path');
var child_process = require('child_process');
var spawn = require('spawn-cmd').spawn;
var Pend = require('pend');
var chokidar = require('chokidar');
var findit = require('findit');
Expand Down Expand Up @@ -119,7 +119,7 @@ function cmdInit(args, argv) {
var options = {
stdio: 'inherit',
};
var child = child_process.spawn('npm', [
var child = spawn('npm', [
'install', '--save', 'chem'], options);
child.on('error', cb);
child.on('exit', function(code) {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"optimist": "~0.6.1",
"pend": "~1.1.3",
"serve-static": "~1.5.3",
"spawn-cmd": "~0.0.2",
"spritesheet": "~1.1.0",
"watchify": "~1.0.2",
"browserify": "~5.10.1"
Expand Down

0 comments on commit 5e694af

Please sign in to comment.