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 4889a31

Browse filesBrowse files
thernstigruyadorno
authored andcommitted
doc: update modules.md wording
PR-URL: #41728 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com>
1 parent 9c2504a commit 4889a31
Copy full SHA for 4889a31

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎doc/api/modules.md‎

Copy file name to clipboardExpand all lines: doc/api/modules.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ folders as modules, and work for both `require` and `import`.
481481

482482
If the module identifier passed to `require()` is not a
483483
[core](#core-modules) module, and does not begin with `'/'`, `'../'`, or
484-
`'./'`, then Node.js starts at the parent directory of the current module, and
484+
`'./'`, then Node.js starts at the directory of the current module, and
485485
adds `/node_modules`, and attempts to load the module from that location.
486486
Node.js will not append `node_modules` to a path already ending in
487487
`node_modules`.

0 commit comments

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