Skip to content

Commit

Permalink
fix: detect EOVERRIDE as an "uninstallable package" error (#792)
Browse files Browse the repository at this point in the history
Fixes #
  • Loading branch information
rix0rrr committed Oct 5, 2022
1 parent e482cb3 commit 1041ed5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/docgen/view/_npm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,8 @@ function assertSuccess(result: CommandResult<ResponseObject>): asserts result is
}

switch (code) {
case 'ERESOLVE':
// dependency resolution problem requires a manual
// intervention (most likely...)
case 'ERESOLVE': // dependency resolution problem requires a manual intervention (most likely...)
case 'EOVERRIDE': // Package contains some version overrides that conflict.
throw new UnInstallablePackageError(message);
default:
throw new NpmError(message, stdout, code);
Expand Down

0 comments on commit 1041ed5

Please sign in to comment.