From a003c85d0680c87cdbf439b4cafdd33f7fb14241 Mon Sep 17 00:00:00 2001 From: Sandeep Adireddy Date: Sat, 7 Jan 2017 09:44:24 +0530 Subject: [PATCH] Fixed errors while installing in windows system --- inquirer.js | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/inquirer.js b/inquirer.js index 3daf1b1..c423cf2 100644 --- a/inquirer.js +++ b/inquirer.js @@ -160,7 +160,7 @@ inq.ask = function ask(prompts, cb) { .on('finish', function() { // do some cleanup on end var prepub = function() { - var spawn = require('child_process').spawn; + var spawn = require('cross-spawn'); var proc = spawn('npm', ['install']); proc.stdout.pipe(process.stdout); proc.stderr.pipe(process.stderr); diff --git a/package.json b/package.json index 4f0699a..fde873e 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "gulp-conflict": "^0.4.0", "gulp-rename": "~1.2.0", "gulp-template": "~3.0.0", + "cross-spawn":"5.0.0", "inquirer": "^0.11.0", "rc": "^1.1.5", "underscore": "^1.7.0",