diff options
Diffstat (limited to 'deps/npm/node_modules/node-gyp/lib/node-gyp.js')
-rw-r--r-- | deps/npm/node_modules/node-gyp/lib/node-gyp.js | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/deps/npm/node_modules/node-gyp/lib/node-gyp.js b/deps/npm/node_modules/node-gyp/lib/node-gyp.js index 3b8f5b0a1c2..a841161e32e 100644 --- a/deps/npm/node_modules/node-gyp/lib/node-gyp.js +++ b/deps/npm/node_modules/node-gyp/lib/node-gyp.js @@ -46,18 +46,7 @@ function gyp () { function Gyp () { var self = this - // set the dir where node-gyp dev files get installed - // TODO: make this *more* configurable? - // see: https://github.com/nodejs/node-gyp/issues/21 - var homeDir = process.env.HOME || process.env.USERPROFILE - if (!homeDir) { - throw new Error( - "node-gyp requires that the user's home directory is specified " + - "in either of the environmental variables HOME or USERPROFILE" - ); - } - this.devDir = path.resolve(homeDir, '.node-gyp') - + this.devDir = '' this.commands = {} commands.forEach(function (command) { @@ -92,6 +81,7 @@ proto.configDefs = { , ensure: Boolean // 'install' , solution: String // 'build' (windows only) , proxy: String // 'install' + , devdir: String // everywhere , nodedir: String // 'configure' , loglevel: String // everywhere , python: String // 'configure' |