Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
doc: update modules.md wording
  • Loading branch information
thernstig authored Jan 28, 2022
commit 685702ce51fee4c3503b9f5001d51e1993144119
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 current directory of the current module, and
Comment thread
thernstig marked this conversation as resolved.
Resolved
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