mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user