Skip to content

Commit a185536

Browse files
committed
core: fix the HOME dir detection on Windows 7
1 parent ae39e1a commit a185536

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/node-gyp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function Gyp () {
4141
// set the dir where node-gyp dev files get installed
4242
// TODO: make this configurable?
4343
// see: https://github.com/TooTallNate/node-gyp/issues/21
44-
var homeDir = process.env.HOME
44+
var homeDir = process.env.HOME || process.env.USERPROFILE
4545
this.devDir = path.resolve(homeDir, '.node-gyp')
4646

4747
this.commands = {}

0 commit comments

Comments
 (0)