You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to have satisfies throw an error so that we may see that the range does not satisfy due to an invalid range as opposed to an invalid version. The range error that we'd like to see is here:
This would also be very useful for debugging when a bug or failure in semver is encountered, such as #381 or #354
Currently, many errors or failures within semver return a false negative with no clue that something has failed - unless a debugger with "break on caught errors" is active, they appear exactly like a completed validation that has successfully judged the version to be invalid.
If what actually happened was semver hit an error mid-validation due to some bundling issue or internal bug, it's important to be able to see that and treat it differently, rather than have an operation continue based on possibly incorrect information.
(we've just had exactly this happen, and it took a long time to figure out that there was a caught internal error in semver caused by a bundling issue)
What / Why
When
npm install
npm install
Where
How
Current Behavior
Create an empty project with the following package.json:
Run
npm install
and you get:Expected Behavior
Create an empty project with the following package.json:
Run
npm install
and ideally get something like:Who
References
The text was updated successfully, but these errors were encountered: