-
Notifications
You must be signed in to change notification settings - Fork 12k
ng update not compatible with yarn #11694
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
same issue here |
Hi, i am currently deciding wether to use npm or yarn for my angular project. I would prefer yarn. Therefore i would like to ask if the described problem still exist? Regards, Annick |
I'm still having this issue but adding |
Same issue. We don't even have npm installed because of some issues it has caused while using 100% yarn in our projects. The
|
Please ensure that you have specified The following should be present within the
|
I'm getting the same error, too. At the top of my
And in
|
@a01fe Do you have |
Also, CLI version information would be incredible useful to attempt to troubleshoot the issue. Unfortunately, some versions will require |
@clydin No,
Output from
|
Looks like a todo:
So the yarn on schematics is not supported, there is no class for it. |
That’s related to discovery of installed packages. By that it means to read the lock file instead of manually crawling node modules. |
Why not just use official lockfile package from yarn? for NPM you could use (or clone, or make a new one): |
Using the lock file would be a potential optimization for installed package discovery, not a fix for any of the issues discussed in this thread. |
We also use Yarn exclusively in our repos, and I would be delighted if we could simply run |
Also, as to the original issue, |
To ng update with yarn:
|
Should not be needed if yarn is specified in angular.json
|
The configuration option is also not needed if a lock file is present within the project. With the exception of when both an npm AND yarn lock file are present; in which case the CLI will default to npm so the setting would be needed in that situation if yarn is preferred. |
Closing this issue as yarn is fully supported with |
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 or Feature Request (mark with an
x
)Command (mark with an
x
)Versions
Repro steps
We have been using yarn for some time now and it has been working fine.. but now with "ng update" it feels as yarn.lock file is not used properly?
Running ng update tells me @angular/cli needs update.. then running ng update @angular/cli does nothing but tell me that all looks good.. ?
To get rid of this issue I can just run npm install to generate the package-lock.json file and then run ng update @angular/cli and it works..
The text was updated successfully, but these errors were encountered: