doc: clarify module loading behavior
authorcjihrig <cjihrig@gmail.com>
Thu, 19 Nov 2015 17:05:47 +0000 (12:05 -0500)
committerJames M Snell <jasnell@gmail.com>
Wed, 23 Dec 2015 16:38:33 +0000 (08:38 -0800)
commitad02f0e75fa618d408d2fc115a52591505f06e49
treea5cf8951a1bb5ac27b107a58e8f233f4071050a2
parentdf21360b4798538f12fc2e718e9efa0e82b4cc47
doc: clarify module loading behavior

The module loading system will not append node_modules to a
path already ending in node_modules. This used to be documented,
but it was lost.

Fixes: https://github.com/nodejs/node/issues/3873
PR-URL: https://github.com/nodejs/node/pull/3920
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaƫl Zasso <mic.besace@gmail.com>
doc/api/modules.markdown