| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b77e72a commit 20d9c4a
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -479,7 +479,7 @@ folders as modules, and work for both `require` and `import`. | |||
| 479 | 479 | ||
| 480 | 480 | If the module identifier passed to `require()` is not a | |
| 481 | 481 | [core](#core-modules) module, and does not begin with `'/'`, `'../'`, or | |
| 482 | - `'./'`, then Node.js starts at the parent directory of the current module, and | ||
| 482 | + `'./'`, then Node.js starts at the directory of the current module, and | ||
| 483 | 483 | adds `/node_modules`, and attempts to load the module from that location. | |
| 484 | 484 | Node.js will not append `node_modules` to a path already ending in | |
| 485 | 485 | `node_modules`. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments