diff --git a/tools/cli/dev-bundle-bin-helpers.js b/tools/cli/dev-bundle-bin-helpers.js index 5f68ef6eb1..873fa30e60 100644 --- a/tools/cli/dev-bundle-bin-helpers.js +++ b/tools/cli/dev-bundle-bin-helpers.js @@ -24,6 +24,10 @@ exports.getEnv = function (options) { var env = Object.create(process.env); + // This allows node-gyp to find Node headers and libraries in + // dev_bundle/.node-gyp. + env.USERPROFILE = devBundleDir; + var PATH = env.PATH || env.Path; if (PATH) { paths.push(PATH);