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

ng update and ng update --all do not agree with each other #12261

Closed
johnpapa opened this issue Sep 13, 2018 · 6 comments · Fixed by #18888
Closed

ng update and ng update --all do not agree with each other #12261

johnpapa opened this issue Sep 13, 2018 · 6 comments · Fixed by #18888
Labels
freq1: low Only reported by a handful of users who observe it rarely ng update DX severity3: broken type: bug/fix
Milestone

Comments

@johnpapa
Copy link
Contributor

Bug 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
- [x ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Versions

Angular CLI: 6.1.2
Node: 8.11.4
OS: darwin x64
Angular: 
... 

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.7.2
@angular-devkit/core         0.7.2
@angular-devkit/schematics   0.7.2
@schematics/angular          0.7.2
@schematics/update           0.7.2
rxjs                         6.2.2
typescript                   2.7.2

Repro steps

ng update
ng update --all

The log given by the failure

ng update                  
    We analyzed your package.json and everything seems to be in order. Good work!

~/_git/vikings  master ✗                                                           17h22m ⚑  
▶ng update --all            
                  Package "@angular/compiler-cli" has an incompatible peer dependency to "typescript" (requires ">=2.7.2 <2.10", would install "3.0.3").
Incompatible peer dependencies found. See above.

Desired functionality

If ng update says it's all clear, then the ng update --all should agree. Not sure which is right.

Mention any other details that might be useful

@billfranklin
Copy link

also getting 'unable to verify the first certificate' for packages like primeng that work fine in NPM but fail on 'ng update primeng'. Something bad has happened to ng update.

@brianivander
Copy link

I have the same problem:
Package "@angular/compiler-cli" has an incompatible peer dependency to "typescript" (requires ">=2.7.2 <2.10", would install "3.0.3")

This might be the same issue: [(https://github.com//issues/12243)]

How to fix this?

@sistr22
Copy link

sistr22 commented Sep 23, 2018

instead of doing the ng update --all I.m running each update one by one:
ng update @angular/core
[...]
It seems to be working so far ... weird

@OgniSperanza
Copy link

@WhiteSEEKER, I'm doing the same, but ng update is literally taking 20-30+min on each manual update. I found another issue that is closed and that issue essentially concluded: ng update is terrible in terms of performance and user experience, deal with it.

Are you having the same experience? It has taken me nearly the entire workday to update my project.

@mackelito
Copy link

Any updates to this old issue? :)

@dgp1130 dgp1130 added needs: discussion On the agenda for team meeting to determine next steps ng update DX and removed needs: discussion On the agenda for team meeting to determine next steps labels May 26, 2020
alan-agius4 added a commit that referenced this issue Sep 29, 2020
'--all' functionality has been removed from `ng update` as updating multiple packages at once is not recommended. To update the depencencies in your workspace 'package.json' use the update command of your package manager.

Closes #15278
Closes #13095
Closes #12261
Closes #12243
Closes #18813
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Oct 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
freq1: low Only reported by a handful of users who observe it rarely ng update DX severity3: broken type: bug/fix
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants