From 37a5dff23ab4b9f8bce4fea1e1568edc7e01a17b Mon Sep 17 00:00:00 2001 From: Britt Selvitelle Date: Wed, 26 Apr 2017 17:53:59 -0700 Subject: [PATCH] Escape path passed into spawn so `npm start` works if there are spaces in the path. See: https://github.com/nodejs/node/issues/6803 Fixes: brave/browser-laptop#8516 --- tools/start.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/start.js b/tools/start.js index e48c89c6b9..f7583187e2 100644 --- a/tools/start.js +++ b/tools/start.js @@ -7,7 +7,7 @@ const options = { stdio: 'inherit', shell: true } -const muon = spawn('electron', [path.join(__dirname, '..')].concat(process.argv.slice(2)), options) +const muon = spawn('electron', [`"${path.join(__dirname, '..')}"`].concat(process.argv.slice(2)), options) muon.on('error', (err) => { console.error(`could not start muon ${err}`)