Skip to content

Commit

Permalink
doc: update modules.md wording
Browse files Browse the repository at this point in the history
PR-URL: #41728
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Mestery <mestery@protonmail.com>
  • Loading branch information
thernstig authored and ruyadorno committed Feb 7, 2022
1 parent 9c2504a commit 4889a31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ folders as modules, and work for both `require` and `import`.

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

0 comments on commit 4889a31

Please sign in to comment.