Skip to content

Commit 60815c4

Browse files
kasperpeulenstorybook-bot
authored andcommitted
Merge pull request #29187 from andrasczeh/patch-1
CLI: Show constraints in error when getting depndencies (cherry picked from commit 71a3eb4)
1 parent b90e0ec commit 60815c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/core/src/common/js-package-manager/JsPackageManager.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ export abstract class JsPackageManager {
418418
.find((version) => satisfies(version, constraint));
419419
invariant(
420420
latestVersionSatisfyingTheConstraint != null,
421-
'No version satisfying the constraint.'
421+
`No version satisfying the constraint: ${packageName}${constraint}`
422422
);
423423
return latestVersionSatisfyingTheConstraint;
424424
}

0 commit comments

Comments
 (0)