We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c2a014 commit d50b121Copy full SHA for d50b121
index.js
@@ -17,7 +17,11 @@ const byline = require('byline')
17
const resolveFrom = require('resolve-from')
18
const { PassThrough } = require('stream')
19
20
-const DEFAULT_NODE_GYP_PATH = resolveFrom(__dirname, 'node-gyp/bin/node-gyp')
+let DEFAULT_NODE_GYP_PATH
21
+try {
22
+ DEFAULT_NODE_GYP_PATH = resolveFrom(__dirname, 'node-gyp/bin/node-gyp')
23
+} catch (err) {}
24
+
25
const hookStatCache = new Map()
26
27
let PATH = 'PATH'
0 commit comments