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

Windows: Loading from the global folders #3462

Closed
wants to merge 1 commit into
from
Jump to file or symbol
Failed to load files and symbols.
+5 −0
Split
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' ? ';' : ':';