Merge pull request #318 from davej/feature/use-current-node-in-child-scripts

fix(post-install): prefer current node interpreter in child scripts (Fixes #296)
This commit is contained in:
Zoltan Kochan
2016-08-25 11:02:18 +03:00
committed by GitHub

View File

@@ -56,6 +56,7 @@ function runScript (command, args, opts) {
env.PATH = [
join(opts.cwd, 'node_modules', '.bin'),
dirname(require.resolve('../../bin/node-gyp-bin/node-gyp')),
dirname(process.execPath),
process.env.PATH
].join(delimiter)