S
S
someserj2017-03-11 20:57:07
JavaScript
someserj, 2017-03-11 20:57:07

How to find out the size of the node_modules folder?

Windows can't determine the size of this folder

Answer the question

In order to leave comments, you need to log in

5 answer(s)
B
bbeight, 2017-03-11
@bbeight

C2oxi8-WEAAvemK.jpg:large
Our computers are not yet powerful enough for this.

V
Vitaly, 2017-03-11
@vshvydky

Maybe it's time to update npm so that the module directory is flat building?

A
Alexander Aksentiev, 2017-03-11
@Sanasol

A question worthy of discussion.
Paths in nodemodules are too long for Windows due to infinite nesting.
And there are countless files.
Put it in a zip and see, although it may not be packed for the above reason.

A
Anton Bobylev, 2017-03-11
@dpigo

Try running npm dedupe first to get rid of duplicate packages and make the tree as flat as possible. Then - consider the size.

A
Alexander Pushkarev, 2018-06-07
@AXP-dev

5b197a322f362500499908.png
Absolutely in all projects I can see. What's on the work machine, what's on the home.
You can also find out the weight from package.json via https://bundlephobia.com
Or via https://github.com/siddharthkp/cost-of-modules

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question