diff --git a/doc/api/modules.markdown b/doc/api/modules.markdown index e9db1e4b225cbc..5c1d7671e4f701 100644 --- a/doc/api/modules.markdown +++ b/doc/api/modules.markdown @@ -339,7 +339,8 @@ example, then `require('./some-library')` would attempt to load: If the module identifier passed to `require()` is not a native module, and does not begin with `'/'`, `'../'`, or `'./'`, then Node.js starts at the parent directory of the current module, and adds `/node_modules`, and -attempts to load the module from that location. +attempts to load the module from that location. Node will not append +`node_modules` to a path already ending in `node_modules`. If it is not found there, then it moves to the parent directory, and so on, until the root of the file system is reached.