-
Notifications
You must be signed in to change notification settings - Fork 12k
[Yarn2] Migrations fail when using custom protocols in package.json
#19203
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
Comments
Additionally, and related, on yarn 2 these flags are not supported: angular-cli/packages/angular/cli/utilities/install-package.ts Lines 168 to 174 in b7890b6
Resulting in this error when trying to install the CLI to a temp path: I'm not sure if a direct workaround is possible, but a manual one is to run |
Another workaround would be to install the latest version globally. Although this will only work when using Angular CLI version 11 which is still in RC. I think for the second issue, it’s best to report it as a separate one, as this will require a separate investigation and resolution from the original issue. |
Opened the second issue separately, here: #19209 |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🐞 Bug report
Command (mark with an
x
)Is this a regression?
No
Description
Yarn 2 allows using custom protocols for dependencies. A current list is available here:
https://yarnpkg.com/features/protocols
It seems that when trying to use
ng update
for migrations, the process fails because it thinks it finds a malformed specifier.I believe this should not be a hard error, but perhaps just a warning. It is safe to ignore these dependencies.
Note that this error occurs with the currently compatible Yarn2/Angular mode of using the standard
node_modules
linker. See: #16980Relevant section of code:
angular-cli/packages/schematics/update/update/index.ts
Lines 869 to 871 in e22c196
🔬 Minimal Reproduction
🔥 Exception or Error
🌍 Your Environment
The text was updated successfully, but these errors were encountered: