question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Useless installation of temporary CLI

See original GitHub issue

Command

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:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
alan-agius4commented, Oct 6, 2022

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.

0reactions
angular-automatic-lock-bot[bot]commented, Nov 6, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using Command Prompt to get rid of Old Installation of Windows
Click on Temporary files. Click on the Previous version of Windows item to select (check) it, and click on the Remove files button....
Read more >
Command line to delete the temporary files on Windows drives
Use the command line for a quick cleanup of Windows temporary files. One precaution to be aware of: Do not use this command...
Read more >
How to Delete Temporary Files on Windows 10/11 (Tutorial)
Another way to completely delete temporary files and folders from your Windows operating system is by using the Command Prompt.
Read more >
How to Delete Temporary Files in Windows 10?
Deleting all temp files: To delete all the temporary files follow the below steps: Step 1: Press Windows key + R to open...
Read more >
How to Delete Temporary Files in Windows 10 - iSunshare
When you are running the Windows OS, the system can create temporary files and usually delete them automatically when they are useless.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found