Skip to content

Commit 7894cfc

Browse files
committed
fix: do not prepend node execPath by default
1 parent bd6df0c commit 7894cfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/extendPath.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module.exports = (wd, originalPath, nodeGyp, opts) => {
2727

2828
function shouldPrependCurrentNodeDirToPATH (opts) {
2929
const cfgsetting = opts.scriptsPrependNodePath
30-
if (cfgsetting === false) return false
30+
if (cfgsetting === false || cfgsetting == null) return false
3131
if (cfgsetting === true) return true
3232

3333
let isDifferentNodeInPath

0 commit comments

Comments
 (0)