Skip to content
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 installs incorrect version, because dist-tag is ignored #140

Closed
JohannesHoppe opened this issue Nov 19, 2021 · 1 comment
Closed

yarn installs incorrect version, because dist-tag is ignored #140

JohannesHoppe opened this issue Nov 19, 2021 · 1 comment
Assignees
Labels

Comments

@JohannesHoppe
Copy link
Member

Just adding more info, this is what happens during the installation of angular-cli-ghpages under an Angular 13 project generated by @angular/cli:

yarn ng add angular-cli-ghpages
yarn run v1.22.17
$ ng add angular-cli-ghpages
 Using package manager: yarn✔ Found compatible package version: angular-cli-ghpages@0.6.2. Package information loaded.

The package angular-cli-ghpages@0.6.2 will be installed and executed.Would you like to proceed? Yes
 Package successfully installed.An unhandled exception occurred: NOT SUPPORTED: keyword "id", use "$id" for schema ID  
See "C:\Users\euaar\AppData\Local\Temp\ng-WkWfhC\angular-errors.log" for further details.
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Originally posted by @euaaron in #137 (comment)

@JohannesHoppe
Copy link
Member Author

JohannesHoppe commented Nov 19, 2021

This behaviour is well-known for yarn, see yarnpkg/yarn#2154 .

I will bump the official version to 1.0.0. This should fix the version resolution, so that everybody gets the latest version when doing ng add angular-cli-ghpages.

All breaking changes are now planned for v2.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant