| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 476d81f commit 83e38fa
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -26,11 +26,13 @@ module.exports = function install() { | |||
| 26 | 26 | } | |
| 27 | 27 | ||
| 28 | 28 | return new Promise(function(resolve, reject) { | |
| 29 | + const gypPath = path.join(__dirname, "..", "node_modules", "node-gyp", "bin", "node-gyp.js"); | ||
| 29 | 30 | var spawnedNodePreGyp = spawn(nodePreGyp, args, { | |
| 30 | - env: Object.assign({}, process.env, { | ||
| 31 | - npm_config_node_gyp: path.join(__dirname, "..", "node_modules", | ||
| 32 | - "node-gyp", "bin", "node-gyp.js") | ||
| 33 | - }) | ||
| 31 | + env: { | ||
| 32 | + ...process.env, | ||
| 33 | + npm_config_node_gyp: gypPath | ||
| 34 | + }, | ||
| 35 | + shell: process.platform === "win32" | ||
| 34 | 36 | }); | |
| 35 | 37 | ||
| 36 | 38 | spawnedNodePreGyp.stdout.on("data", function(data) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments