This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fix #3461 Windows: Loading from the global folders

  • Loading branch information...
lamb
lamb committed Jun 17, 2012
1 parent d614d16 commit a6f593dfe0501ef6049d6d2b0786170e9567ff2c
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/module.js
View
@@ -494,6 +494,11 @@ Module._initPaths = function() {
paths.unshift(path.resolve(process.env['HOME'], '.node_libraries'));
paths.unshift(path.resolve(process.env['HOME'], '.node_modules'));
}
+
+ if (process.env['USERPROFILE']) {
+ paths.unshift(path.resolve(process.env['USERPROFILE'], '.node_libraries'));
+ paths.unshift(path.resolve(process.env['USERPROFILE'], '.node_modules'));
+ }
if (process.env['NODE_PATH']) {
var splitter = process.platform === 'win32' ? ';' : ':';

0 comments on commit a6f593d

Please sign in to comment.