Skip to content

Commit

Permalink
core: fix the HOME dir detection on Windows 7
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Mar 31, 2012
1 parent ae39e1a commit a185536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/node-gyp.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function Gyp () {
// set the dir where node-gyp dev files get installed
// TODO: make this configurable?
// see: https://github.com/TooTallNate/node-gyp/issues/21
var homeDir = process.env.HOME
var homeDir = process.env.HOME || process.env.USERPROFILE
this.devDir = path.resolve(homeDir, '.node-gyp')

this.commands = {}
Expand Down

0 comments on commit a185536

Please sign in to comment.