From a98d0717e8f07e8a26f1042b20aca66f4d7a41aa Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 7 Feb 2011 12:50:05 -0800 Subject: [PATCH] Remove incorrect doc about node_modules --- doc/api/modules.markdown | 8 -------- 1 file changed, 8 deletions(-) diff --git a/doc/api/modules.markdown b/doc/api/modules.markdown index 68e60cfef59..7b7ebefcb38 100644 --- a/doc/api/modules.markdown +++ b/doc/api/modules.markdown @@ -85,14 +85,6 @@ suits them. `require.paths` can be modified at runtime by simply unshifting new paths onto it, or at startup with the `NODE_PATH` environmental variable (which should be a list of paths, colon separated). -Additionally node will search for directories called `node_modules` starting -at the current directory (of the module calling `require`) and upwards -towards the root of the package tree. -This feature makes it easy to have different module versions for different -environments. Imagine the situation where you have a development environment -and a production environment each with a different version of the `foo` -module: `projects/x/development/node_modules/foo` and -`projects/x/production/node_modules/foo`. The second time `require('foo')` is called, it is not loaded again from