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.
This commit is contained in:
Ben Newman
2016-08-05 12:07:59 -04:00
parent a4a828e4c3
commit 4bdc65919d

View File

@@ -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);