New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
yarn 1.5.1 error An unexpected error occurred: "Can't add \"raphael\": invalid package version \"2.2.0b\".". #5417
Comments
#5292 changed behavior |
It looks like
That GitHub repo does contain that branch and pacakge.json does have a matching version:
But it looks line in yarn 1.3.2 it somehow gets turned into
|
I believe that the reason for this is that #5292 enforces semver too strictly on a package and breaks the functionality of allowing branch names from being specified in I've run into this same problem and it's confirmed above since https://github.com/nhnent/raphael/tree/2.2.0b is a valid branch though an invalid semver. |
@Gemorroj there's still an issue with |
Confirming I have same issue as @naganowl |
Looks like there are fixtures for the |
Took another look at my workflow and it turns out that my issue was indeed because the branch I was referencing had a package dependency whose version is invalid ( @lightstrike perhaps another look at dependencies of your packages may reveal a similar issue. |
I fixed this problem by renaming yarn.lock to something else (1yarn.lock) and then running yarn install again ;D |
yarn 1.5.1 (but works fine on 1.3.2)
execute
yarn install
yarn-error.log:
yarn.lock.txt
The text was updated successfully, but these errors were encountered: