From 9a672961fafd896f68a39e2d55f744a625417a4d 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/39754 Reviewed-By: Anna Henningsen Reviewed-By: Richard Lau Reviewed-By: Michaël Zasso Reviewed-By: Tobias Nießen Reviewed-By: James M Snell Reviewed-By: Franziska Hinkelmann --- doc/api/cli.md | 9 +++++++++ doc/node.1 | 3 +++ src/env-inl.h | 3 ++- src/node_options.cc | 5 +++++ src/node_options.h | 1 + 5 files changed, 20 insertions(+), 1 deletion(-) diff --git a/doc/api/cli.md b/doc/api/cli.md index 7c0d5e88d4d640..f6e9e6cfcaf63a 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -619,6 +619,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`