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 danielleadams committed Mar 2, 2022
1 parent cbc4c9f commit c761252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/modules.md
Expand Up @@ -479,7 +479,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 c761252

Please sign in to comment.