diff --git a/lib/analyze/browsertime.js b/lib/analyze/browsertime.js index 66a3d9b3a..11b30638a 100644 --- a/lib/analyze/browsertime.js +++ b/lib/analyze/browsertime.js @@ -7,7 +7,7 @@ var util = require('../util'), fs = require('fs-extra'), - spawn = require('child_process').spawn, + spawn = require('cross-spawn'), config = require('../conf'), path = require('path'), log = require('winston'), diff --git a/lib/crawler.js b/lib/crawler.js index 22bdc3f8b..e365434a7 100644 --- a/lib/crawler.js +++ b/lib/crawler.js @@ -4,7 +4,7 @@ * and other contributors * Released under the Apache 2.0 License */ -var spawn = require('child_process').spawn, +var spawn = require('cross-spawn'), path = require('path'), config = require('./conf'), urlParser = require('url'), diff --git a/package.json b/package.json index fdd7a1291..6160e9f25 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,7 @@ "whereis": "0.2.x", "gpagespeed": "0.0.6", "webpagetest": "0.2.x", - "simplehar": "0.14.x" + "simplehar": "0.14.x", + "cross-spawn": "0.1.x" } }