From 4889a3177f43f95f2da8baf664b06447adc3280c Mon Sep 17 00:00:00 2001 From: Tobias Hernstig <30827238+thernstig@users.noreply.github.com> Date: Sun, 30 Jan 2022 15:26:14 +0100 Subject: [PATCH] doc: update modules.md wording PR-URL: https://github.com/nodejs/node/pull/41728 Reviewed-By: Antoine du Hamel Reviewed-By: Mohammed Keyvanzadeh Reviewed-By: Mestery --- doc/api/modules.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/modules.md b/doc/api/modules.md index 7c814351a62fa2..40135a804b8631 100644 --- a/doc/api/modules.md +++ b/doc/api/modules.md @@ -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`.