Should load modules from global folders
Closed this issue · 1 comments
lance commented
Excerpt from: http://nodejs.org/api/modules.html#modules_loading_from_the_global_folders
If the NODE_PATH environment variable is set to a colon-delimited list of absolute paths, then node will search those paths for modules if they are not found elsewhere. (Note: On Windows, NODE_PATH is delimited by semicolons instead of colons.)
Additionally, node will search in the following locations:
Where $HOME is the user's home directory, and $PREFIX is node's configured node_prefix.
- $HOME/.node_modules
- $HOME/.node_libraries
- $PREFIX/lib/node
These are mostly for historic reasons. You are highly encouraged to place your dependencies locally in node_modules folders. They will be loaded faster, and more reliably.
bobmcwhirter commented
Should be fixed by