Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

Size of scaffolded project is massive #1089

Closed
marcofaion opened this issue May 15, 2015 · 8 comments
Closed

Size of scaffolded project is massive #1089

marcofaion opened this issue May 15, 2015 · 8 comments

Comments

@marcofaion
Copy link

Hi,

i've generated a new application with the generator and found that a new project scaffolded this way is about 200Mb, most of the weight reside in the node_modules directory.

Is that normal? i'm asking cause i've some trouble importing such massive project inside eclipse ide.

Thanks for any info.

@sindresorhus
Copy link
Member

Ouch. That's huge. I'm getting even worse 327 MB!

I've looked into this for you and it seems like there's a few big offenders:

What might help a little bit is to run $ npm dedupe and it will deduplicate duplicate dependencies. It brought the size down to 190 MB for me. Still way too much though.

@sindresorhus sindresorhus changed the title info about generated scaffold weight Size of scaffolded project is massive May 15, 2015
@marcofaion
Copy link
Author

thanks you, i've tried to run "npm dedupe" but the size has not changed :( it's still 196,9Mb

@sindresorhus
Copy link
Member

@marcofaion Make sure you're running the latest version of node and npm.

@marcofaion
Copy link
Author

@sindresorhus

$ node -v
v0.10.36
$ npm -v
2.7.6

Maybe not the latest, anyway, if the size of the yeoman generated project is correct, maybe i've to use another ide to manage it.

@sindresorhus
Copy link
Member

@marcofaion The size is not correct, but we'll have to wait on the referenced tickets to be fixed. That should get the size down 90%.

@eddiemonge
Copy link
Member

This ticket is rather broad and the correct steps have been taken in the other projects.

@abhishek0589
Copy link

abhishek0589 commented Apr 17, 2016

This issue still persists.

Node- 4.4.3
npm- 3.8.6
grunt cli- 1.2
grunt-0.4.5

The size of simple todo app described in Yeoman tutorial is going to 190 MBs. I have also tried npm dedupe but it did not change anything. Please refer attachment.

image

@sindresorhus
Copy link
Member

@abhishek0589 The linked issues btford/grunt-google-cdn#62, passy/google-cdn#27, and imagemin/imagemin#97, are still not fixed. Help out on them if you want to see this resolved.

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

4 participants