diff options
Diffstat (limited to 'cli/factory.rs')
-rw-r--r-- | cli/factory.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/factory.rs b/cli/factory.rs index a9f6bf87e..074eaa1e4 100644 --- a/cli/factory.rs +++ b/cli/factory.rs @@ -408,7 +408,8 @@ impl CliFactory { .npm_resolver .get_or_try_init_async(async { let fs = self.fs(); - create_cli_npm_resolver(if self.options.use_byonm() { + // For `deno install` we want to force the managed resolver so it can set up `node_modules/` directory. + create_cli_npm_resolver(if self.options.use_byonm() && !matches!(self.options.sub_command(), DenoSubcommand::Install(_)) { CliNpmResolverCreateOptions::Byonm(CliNpmResolverByonmCreateOptions { fs: fs.clone(), root_node_modules_dir: match self.options.node_modules_dir_path() { |