-
Notifications
You must be signed in to change notification settings - Fork 12k
ng add doesn't use the proper yarn registry. #23448
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
It looks like Yarn 2+ is a can of breaking changes and behaviours. Going through the docs it appears that they removed support for More context: Recently @clydin and myself did have a chat that we should probably start using the package manager CLI directly to retrieve the package information example |
@dedalusMohantyMa we have the same issue you're describing. Did you find any workarounds? |
As a workaround you can try to use the |
I could
|
I guess then I also have to change my package manager configuration in my |
This is blocking my team from being able to update angular. We have a few private npm packages that authenticate using the I tried running this update with the latest ng cli available, and it still fails with this error. I also tried the workaround mentioned above by trying to use an .npmrc file instead, but with no luck.
Here is my
|
@harryt04 it should not say |
Any update on that? We've used the workaround suggested above (temporarily switch to NPM) for the initial v15 update, but any further update requires the same workaround over and over. |
Upgrading to Angular 16, and facing the same issue again. |
Adds support for yarnrc.yml files so that users of Yarn v2+ who attempt to run `ng add` or `ng update` do not experience a bug where the incorrect registry file extension (.yarnrc) is selected. Fixes angular#23448
Any updates on this? It is getting very annoying to proceed with the Angular updated since we upgraded to Yarn 4+ |
I hate to keep bumping the thread - but it would be nice to get feedback from the maintainers. Thanks! |
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Unknown
Description
A clear and concise description of the problem...ng add
fails to look at the custom registry definition. If I run withng add
it fails due to look for the package in registry.npmjs.org. If I instead justyarn install
it looks at the custom registry from the vendor.🔬 Minimal Reproduction
ng new repo
cd repo
yarn set version berry
yarn install
ng add @infragistics/igniteui-angular
🔥 Exception or Error
So you can see that while it's using yarn, it's somehow avoiding the
~/.yarnrc.yml
file.🌍 Your Environment
Anything else relevant?
My ~/.angular-config.json files specifies to use yarn
If I just straight-up run a
yarn install
of that package, it works without issue, showing that my yarn configuration is set up properly as far as a proxy, the registry for that prefix, etc...The text was updated successfully, but these errors were encountered: