Skip to content

Commit ec68c98

Browse files
committed
chore: fix install script for Windows
1 parent 476d81f commit ec68c98

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lifecycleScripts/install.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ module.exports = function install() {
2727

2828
return new Promise(function(resolve, reject) {
2929
var spawnedNodePreGyp = spawn(nodePreGyp, args, {
30+
shell: process.platform === "win32",
3031
env: Object.assign({}, process.env, {
3132
npm_config_node_gyp: path.join(__dirname, "..", "node_modules",
3233
"node-gyp", "bin", "node-gyp.js")
@@ -60,6 +61,6 @@ if (require.main === module) {
6061
.catch(function(e) {
6162
console.error("[nodegit] ERROR - Could not finish install");
6263
console.error("[nodegit] ERROR - finished with error code: " + e);
63-
process.exit(e);
64+
process.exit(1);
6465
});
6566
}

0 commit comments

Comments
 (0)