From 20d9c4a2c5ec24a40cfd72845d9db6234ec38659 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 b51d6df68bb6ff..ea90eda9725f19 100644 --- a/doc/api/modules.md +++ b/doc/api/modules.md @@ -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`.