Skip to content

Commit 20d9c4a

Browse files
thernstigdanielleadams
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 b77e72a commit 20d9c4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/modules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ folders as modules, and work for both `require` and `import`.
479479

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

0 commit comments

Comments
 (0)