From 3dc0320e438f90decc8f83a104f0002d43be7050 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 16 Aug 2021 09:58:58 +0900 Subject: [PATCH] src: add --no-global-search-paths cli option --- doc/api/cli.md | 9 +++++++++ doc/node.1 | 3 +++ src/env.cc | 4 ++++ src/node_options.cc | 5 +++++ src/node_options.h | 1 + 5 files changed, 22 insertions(+) diff --git a/doc/api/cli.md b/doc/api/cli.md index 2314886f79ad9a..e1ff206c54ea1b 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -612,6 +612,14 @@ added: v9.0.0 Disables runtime checks for `async_hooks`. These will still be enabled dynamically when `async_hooks` is enabled. +### `--no-global-search-paths` + + +Do not search modules from global paths like `$HOME/.node_modules` and +`$NODE_PATH`. + ### `--no-warnings`