Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit df70861

Browse filesBrowse files
Trottruyadorno
authored andcommitted
doc: simplify circular dependencies text in modules.md
PR-URL: #35126 Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent 4bde865 commit df70861
Copy full SHA for df70861

File tree

Expand file treeCollapse file tree

1 file changed

+3
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-4
lines changed
Open diff view settings
Collapse file

‎doc/api/modules.md‎

Copy file name to clipboardExpand all lines: doc/api/modules.md
+3-4Lines changed: 3 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,9 @@ may be necessary to install a specific version of package `bar`. The `bar`
9898
package may itself have dependencies, and in some cases, these may even collide
9999
or form cyclic dependencies.
100100

101-
Since Node.js looks up the `realpath` of any modules it loads (that is,
102-
resolves symlinks), and then looks for their dependencies in the `node_modules`
103-
folders as described [here](#modules_loading_from_node_modules_folders), this
104-
situation is very simple to resolve with the following architecture:
101+
Because Node.js looks up the `realpath` of any modules it loads (that is, it
102+
resolves symlinks) and then [looks for their dependencies in `node_modules` folders](#modules_loading_from_node_modules_folders),
103+
this situation can be resolved with the following architecture:
105104

106105
* `/usr/lib/node/foo/1.2.3/`: Contents of the `foo` package, version 1.2.3.
107106
* `/usr/lib/node/bar/4.3.2/`: Contents of the `bar` package that `foo` depends

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.