angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Stuck forever at "Installing packages for tooling via npm"

Open esafwan opened this issue 10 years ago • 30 comments

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.

esafwan avatar Nov 06 '16 07:11 esafwan

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.

lightyaer avatar Nov 17 '17 07:11 lightyaer

stuck at "Installing packages for tooling via yarn."

nolitus avatar Nov 18 '17 02:11 nolitus

@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!

sushobitha avatar Nov 26 '17 12:11 sushobitha

It is the npm install that takes time, to visually see progress.

  1. ng new ProjectName --skip-install
  2. cd ProjectName
  3. npm install
  4. ng serve
  5. Copy output localhost link and paste in browser

poizenlab avatar Nov 27 '17 08:11 poizenlab

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?

filipesilva avatar Dec 07 '17 15:12 filipesilva

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.

lightyaer avatar Dec 07 '17 15:12 lightyaer

Hi guys, what is the status of this issue? I still get the message Installing packages for tooling via npm...

oshingc avatar Jan 11 '18 16:01 oshingc

@oshingc Its just a very big download. Leave your system for an hour minimum and everything will be fine

vibs2006 avatar Jan 11 '18 16:01 vibs2006

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

aldocosta avatar Jan 15 '18 12:01 aldocosta

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.