-
Notifications
You must be signed in to change notification settings - Fork 12k
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 version take around 3 min to start #21172
Comments
Hi @oshri551, Can you please provide a CPU profile? You can generate one by running the below command inside of an Angular workspace
|
don't know what happened but after running node --cpu-prof node_modules/@angular/cli/lib/init.js version once everything started to work fast. Thanks for the quick reply |
After restart the issue continue - I've attached the cpu profile |
…nager version during `ng version` NPM updater notifier will prevents the child process from closing until it timeout after 3 minutes. Closes #21172
Version 12.1.1 solved the 3 min wait for ng version but, it also happens in ng new <project_name> |
Updating the global CLI version should solve the issue.
|
I've updated the version today and now on 12.1.1 and even ng update command on on local project - version (10.0.x) wait 3 min to start: C:\Users\oifrah>ng version
/ △ \ | '_ \ / Angular CLI: 12.1.1 Angular: Package Version@angular-devkit/architect 0.1201.1 (cli-only) |
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
Command
ng version
Is this a regression?
started to see this after installing 12.0.4 version but now even when reverting to v11 still see the issue
Description
When trying to do `ng version` or `ng new` it takes almost 3 minutes for the CLI to start🌍 Your Environment
Anything else relevant?
Tried to remove node and reinstall the npm packages.
Other npm packages works fine
The text was updated successfully, but these errors were encountered: