angularangular-cli

Angular2 creating a new App hangs during npm install


I have an issue that appears during the creation of a new App with the cmd:

ng new [MY_PROJECTNAME]  --prefix [MY_Prefix]

What I did before:

  1. install npm -g install angular-cli
  2. install npm -g install typings -> which shouldn't be necessary!
  3. after a few failing tries I also tried: npm cache clean and then retried

Versions:

So the program keeps hanging for quite a while (7min or so...) in the stage as shown in the Picture.

Does any one now how to fix that?

Problem in cmd while creating new App:

enter image description here


Solution

  • Solution:

    As Angular University already mentioned it was due to proxies wich i used during my work. At home it worked just fine.

    npm can't download package correctly if a internet connection with proxies is used.

    EDIT:

    Sometimes the problem can be solved by restarting the computer and dooing npm chache clean

    after that works on my Computer in something like 7 minutes. (Don't ask me why)

    /EDIT

    Hope it helps other Developers

    Manuel