From db31aa29f9046ff31c9faa7c900a7a2bf2918982 Mon Sep 17 00:00:00 2001 From: Joe Lanman Date: Wed, 2 Nov 2016 18:14:22 +0000 Subject: [PATCH] use cross-spawn to fix spawn on windows --- package.json | 1 + start.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d2aa622846..05196d8da4 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "body-parser": "^1.14.1", "browser-sync": "^2.11.1", "consolidate": "0.x", + "cross-spawn": "^5.0.0", "express": "4.13.3", "express-session": "^1.13.0", "express-writer": "0.0.4", diff --git a/start.js b/start.js index 388de1512f..a43c89632b 100644 --- a/start.js +++ b/start.js @@ -10,10 +10,10 @@ if (!fs.existsSync(path.join(__dirname, '/node_modules'))) { // run gulp -var child = require('child_process') +var spawn = require('cross-spawn') process.env['FORCE_COLOR'] = 1 -var gulp = child.spawn('gulp') +var gulp = spawn('gulp') gulp.stdout.pipe(process.stdout) gulp.stderr.pipe(process.stderr) process.stdin.pipe(gulp.stdin)