From 4bdc65919df9615990b36cebba992f063fbbbdf7 Mon Sep 17 00:00:00 2001 From: Ben Newman Date: Fri, 5 Aug 2016 12:07:59 -0400 Subject: [PATCH] Set $USERPROFILE to the dev bundle directory for `meteor {node,npm}`. The node-gyp tool uses `process.env.HOME || process.env.USERPROFILE` to determine where it should install the .node-gyp directory containing Node headers and libraries, and we now preinstall that directory at dev_bundle/.node-gyp/, so (with this change) no download should be necessary. --- tools/cli/dev-bundle-bin-helpers.js | 4 ++++ 1 file changed, 4 insertions(+) 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);