Stuck forever at "Installing packages for tooling via npm"
OS?
Mac OSX Sierra
Versions.
angular-cli: 1.0.0-beta.18 node: 6.9.1
Repro steps.
When I start new project by using ng new project, its quickly finishes all the first steps and get stuck at the line below:
Successfully initialized git. Installing packages for tooling via npm.
I left it for close to an hour and nothing happened. So I terminated the command and tried ng serve, it seems to work. So what could be the problem? I am not getting any error messages too.
I had the same Issue, so I just visited this page, But it was seriously taking a lot of time, so I checked the node_modules folder and it had about 803 folders, I assumed it was complete, When it was still saying, "Installing packages via npm", I just Hit ENTER/RETURN , "Installed packages for tooling via npm. Project 'my-app' successfully created." Maybe hitting ENTER/RETURN did the trick.
stuck at "Installing packages for tooling via yarn."
@lightyaer Thanks! it worked. I just kept on seeing my screen for about 25mins to get app created successfully. But as you said, i checked the folder and i could find 727 folders in node_modules. I hit enter on the terminal. Within a minute may be, i got the success msg. Thanks!
It is the npm install that takes time, to visually see progress.
- ng new ProjectName --skip-install
- cd ProjectName
- npm install
- ng serve
- Copy output localhost link and paste in browser
Reopening due to the report by @lightyaer that pressing enter seems to finish it. That's really odd. I don't know why that can be.
Do you always get that behaviour?
Nope.. Just the first time coz, I was doing npm install on my work pc, where usually most of the sites are blocked.. So I asked my System Admin to unblock everything, then hit npm install, it went on for like ever, when I pressed return/enter, it seemed to be done.... Then again, I purposely deleted node_modules and hit npm install, it was done in about 5 mins successfully.
Hi guys, what is the status of this issue? I still get the message Installing packages for tooling via npm...
@oshingc Its just a very big download. Leave your system for an hour minimum and everything will be fine
I don't think --skip-install is a fix or a workaround, because, i still have to run npm install, and that also take so long... or i'm missing something? Ps.: Even using --progress=false
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.