Skip to content

Commit 3d809c7

Browse files
anta-semenovSBoudrias
authored andcommitted
getNpmPaths default path for Mac OS (yeoman#72)
Have a problem with lookup function on Mac OS. getNpmPaths is looking for generators in node_modules at '/usr/lib/node_modules' path, but also there is another path for node_modules on mac: '/usr/local/lib/node_modules'.
1 parent e100d8a commit 3d809c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/resolver.js

+1
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ resolver.getNpmPaths = function () {
136136
paths.push(path.join(process.env.APPDATA, 'npm/node_modules'));
137137
} else {
138138
paths.push('/usr/lib/node_modules');
139+
paths.push('/usr/local/lib/node_modules');
139140
}
140141

141142
// Walk up the CWD and add `node_modules/` folder lookup on each level

0 commit comments

Comments
 (0)