diff --git a/lib/install/post_install.js b/lib/install/post_install.js index f446fdbb1b..8fdee8a1ef 100644 --- a/lib/install/post_install.js +++ b/lib/install/post_install.js @@ -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)