summaryrefslogtreecommitdiff
path: root/doc/api/modules.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api/modules.markdown')
-rw-r--r--doc/api/modules.markdown4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/api/modules.markdown b/doc/api/modules.markdown
index 5f2b747ee..f07fcd252 100644
--- a/doc/api/modules.markdown
+++ b/doc/api/modules.markdown
@@ -212,6 +212,10 @@ the `NODE_PATH` environment variable might have been set to:
/home/micheil/.node_modules:/usr/local/lib/node_modules
+Loading from the `require.paths` locations is only performed if the
+module could not be found using the `node_modules` algorithm above.
+Global modules are lower priority than bundled dependencies.
+
#### **Note:** Please Avoid Modifying `require.paths`
For compatibility reasons, `require.paths` is still given first priority