From 3f33cef9f5be4f4810a4b3259c26ddd1e6c874e9 Mon Sep 17 00:00:00 2001 From: DaveJ Date: Wed, 24 Aug 2016 23:03:54 +0100 Subject: [PATCH] fix(post-install): prefer current node interpreter in child scripts fix #296 --- lib/install/post_install.js | 1 + 1 file changed, 1 insertion(+) 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)