ng update not compatible with yarn
See original GitHub issueBug Report or Feature Request (mark with an x
)
- [ x ] bug report -> please search issues before submitting
- [ ] feature request
Command (mark with an x
)
- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
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…
Issue Analytics
- State:
- Created 5 years ago
- Reactions:6
- Comments:20 (8 by maintainers)
Top Results From Across the Web
Angular CLI with yarn - Stack Overflow
How to change package manager for Angular Cli v6.0.3 to yarn? I tried: ng set -- ...
Read more >@angular/upgrade | Yarn - Package Manager
BREAKING CHANGES. Minified UMD bundles are no longer included in the distributed NPM packages. ... core: Previously the ng.getDirectives function threw an error ......
Read more >ng update - Angular
Create source control commits for updates and migrations. Ignore peer dependency version mismatches. Version from which to migrate from.
Read more >npm-check-updates
npm install # update installed packages and package-lock.json ... (default: false) -m, --minimal Do not upgrade newer versions that are ...
Read more >NPM vs. Yarn: Which Package Manager Should You Choose?
However, in Yarn 2, the folder will no longer be supported, by default. ... Here is how to update npm dependencies. In both...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
@clydin No,
npm
is not installed. I manually updated@angular/cli
with:Output from
ng --version
: