Skip to content

ng new takes long to finish #1830

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

Closed
web-dave opened this issue Aug 25, 2016 · 9 comments
Closed

ng new takes long to finish #1830

web-dave opened this issue Aug 25, 2016 · 9 comments

Comments

@web-dave
Copy link

To Setup a Project the command ng new takes very Long to finish. More than 10 minutes are too much I think.

angular-cli: 1.0.0-beta.11-webpack.2
node: 4.4.0
os: win 10 win32 x64

Dave.

@cre8
Copy link

cre8 commented Aug 26, 2016

AngularCLI files are created in less than a second. But there are a lot of packages that have to be downloaded. This takes a lot of time :(

@filipesilva
Copy link
Contributor

Dupe of #1263

@alfaiz-momin
Copy link

How much time it takes?
I tried two times, it stops after creating some folders for a while!...

@gyanchandk
Copy link

The simple solution to this problem is close the command window forcefully to abort the process,and then delete the node-modules folder which has been created so far. Finally run npm install command to have node-modules explicitly .

@stephenasamoah
Copy link

stephenasamoah commented Jan 23, 2018

Another approach is to use the --skip-install flag which generates a new project without installing all the node modules. You can then run npm install later in the generated project directory to install all the required modules.

@b-mi
Copy link

b-mi commented Aug 12, 2018

ng new project is EXACTLY SAME as ng new project --skip-install, then npm install. node_modules is binary exactly same. I tested it. DO NOT GIVE FALSE ADVICES WHICH YOU DID NOT TESTED, YOU WASTE OUR TIME. These pages are full of false advices, and between them are a few good advices.

@b-mi
Copy link

b-mi commented Aug 12, 2018

This is quick:
ng new proj --skip-install
npm update

But to run app is there is need to install this:
npm install --save @angular-devkit/build-angular @angular/compiler-cli

And this install nearly same as npm install (slightly less) - 23749 files, 181 MB (full node_modules 205 MB).

@brunoorsolon
Copy link

Although I agree that "ng new project --skip-install" followed by "npm install" should be the SAME as "ng new project", for me ng new project takes forever and using the separate npm install does not.

Not entirely sure what could be the real issue.

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants