summaryrefslogtreecommitdiff
path: root/cli/tools/installer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tools/installer.rs')
-rw-r--r--cli/tools/installer.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/tools/installer.rs b/cli/tools/installer.rs
index bc8769de1..ed86e86c7 100644
--- a/cli/tools/installer.rs
+++ b/cli/tools/installer.rs
@@ -298,6 +298,10 @@ async fn install_local(
}
InstallFlagsLocal::TopLevel => {
let factory = CliFactory::from_flags(flags);
+ // surface any errors in the package.json
+ if let Some(npm_resolver) = factory.npm_resolver().await?.as_managed() {
+ npm_resolver.ensure_no_pkg_json_dep_errors()?;
+ }
crate::tools::registry::cache_top_level_deps(&factory, None).await?;
if let Some(lockfile) = factory.cli_options()?.maybe_lockfile() {