Wanted to install latest angular in order to install angular 15. However when trying to install angular CLI using the following command it always stuck in the same location.
npm install -g angular/cli@latest --verbose
Other parameters: npm version - 9.8.0z node version - 18.12.0
Read and followed the steps in the following too, but no luck. Cannot install @angular/cli : Cannot install @angular/cli
Can someone help me on this?
Last part of the npm log file:
23 timing npm:load:display Completed in 2ms
24 verbose logfile logs-max:10 dir:/home/viraj/.npm/_logs/2023-07-17T06_04_25_688Z-
25 verbose logfile /home/viraj/.npm/_logs/2023-07-17T06_04_25_688Z-debug-0.log
26 timing npm:load:logFile Completed in 5ms
27 timing npm:load:timers Completed in 0ms
28 timing npm:load:configScope Completed in 0ms
29 timing npm:load Completed in 26ms
30 timing config:load:flatten Completed in 0ms
31 timing arborist:ctor Completed in 0ms
32 silly logfile done cleaning log files
33 timing idealTree:init Completed in 5ms
-
I've had some issues on Angular projects in the past of some packages that just take a very long time to install. So unless it throws an error I'd try being very patient and just letting it run for 15 minutesMartijn Vissers– Martijn Vissers2023年07月17日 06:43:04 +00:00Commented Jul 17, 2023 at 6:43
-
Thank you Martijn for the sharing this information. I'll run it and keep this updated about the result.Viraj– Viraj2023年07月18日 05:29:38 +00:00Commented Jul 18, 2023 at 5:29
-
Unfortunately it didn't work and stuck in the above screen.Viraj– Viraj2023年07月19日 04:34:01 +00:00Commented Jul 19, 2023 at 4:34
1 Answer 1
After trying many answers, still I have the issue with the same npm version. In summary there are 2 ways to bypass this error:
Use nvm and install different node/npm versions and trying for a successful combination (what I did)
Use yarn instead of npm