diff options
author | Rich Trott <rtrott@gmail.com> | 2020-09-09 20:46:32 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2020-09-12 02:29:46 +0300 |
commit | 1df50ffb556b4d751942dfcb753f90c58dcf9e74 (patch) | |
tree | 9cd79b9403530cac1e846c23991164b2d469b2dc /doc/api/modules.md | |
parent | f54254afedd5a2b4800854e7766d845e3803bef6 (diff) |
doc: simplify circular dependencies text in modules.md
PR-URL: https://github.com/nodejs/node/pull/35126
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'doc/api/modules.md')
-rw-r--r-- | doc/api/modules.md | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/doc/api/modules.md b/doc/api/modules.md index 5edb1e101e2..68b995c0a5f 100644 --- a/doc/api/modules.md +++ b/doc/api/modules.md @@ -98,10 +98,9 @@ may be necessary to install a specific version of package `bar`. The `bar` package may itself have dependencies, and in some cases, these may even collide or form cyclic dependencies. -Since Node.js looks up the `realpath` of any modules it loads (that is, -resolves symlinks), and then looks for their dependencies in the `node_modules` -folders as described [here](#modules_loading_from_node_modules_folders), this -situation is very simple to resolve with the following architecture: +Because Node.js looks up the `realpath` of any modules it loads (that is, it +resolves symlinks) and then [looks for their dependencies in `node_modules` folders](#modules_loading_from_node_modules_folders), +this situation can be resolved with the following architecture: * `/usr/lib/node/foo/1.2.3/`: Contents of the `foo` package, version 1.2.3. * `/usr/lib/node/bar/4.3.2/`: Contents of the `bar` package that `foo` depends |