diff --git a/scripts/build.js b/scripts/build.js index 7d74b4183..1e735eed6 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -52,9 +52,9 @@ function afterBuild(options) { function build(options) { var arguments = ['node_modules/pangyp/bin/node-gyp', 'rebuild'].concat(options.args); - console.log(['Building:', process.runtime.execPath].concat(arguments).join(' ')); + console.log(['Building: node'].concat(arguments).join(' ')); - var proc = spawn(process.runtime.execPath, arguments, { + var proc = spawn('node', arguments, { stdio: [0, 1, 2] });