Useless installation of temporary CLI
See original GitHub issueCommand
update
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
I’m not sure if this should be a bug or a feature, it’s more of an annoyance.
Every week when I check with ‘ng update’ it first complains that the CLI is outdated and starts installing a temporary CLI version, which takes a while. Then it tells me there is a new CLI version and I have to install it again with ‘ng update @angular/cli’, this time for real. Next time I do a ‘ng update’ it quickly shows me, without the delay.
Is it really necessary to install a new temporary cli version every week ?
Or maybe if there is a new one, can’t we have question or a parameter to install the new CLI version (automatically), instead of installing it temporarily (and thus twice)? Just like when you type ‘ng new’ you also get a question.
Minimal Reproduction
ng update
The installed Angular CLI version is outdated. Installing a temporary Angular CLI versioned 14.2.5 to perform the update. √ Packages successfully installed.
Exception or Error
No response
Your Environment
Angular CLI: 14.2.5
Node: 16.16.0
Package Manager: npm 8.3.0
OS: win32 x64
Anything else relevant?
No response
Issue Analytics
- State:
- Created a year ago
- Comments:5
Following a convo with @clydin we decided that we will disable downloading a temporary version of the Angular CLI when running
ng update
without any package name. Since in this cases an update to date update executer is not neccessary.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.