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 <[email protected]>
Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
Reviewed-By: Mestery <[email protected]>
  • Loading branch information
thernstig authored and danielleadams committed Mar 14, 2022
1 parent b77e72a commit 20d9c4a
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 @@ -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 20d9c4a

Please sign in to comment.