Tuesday, 19 May 2020

npx create-react-app created a node_modules directory with 372M of node goodness in it. Wat?

I'm running through some node tutorials using node lts, v12.16.3, on Ubuntu 20.04 and typed innpx create-react-app foo and a minute or two later, ...$ ls -l total 532 drwxr-xr-x 1026 36864 May 19 23:37 node_modules -rw-r--r-- 1 187 May 19 23:37 package.json -rwxrwxrwx 1 496668 May 19 23:37 yarn.lock ~/w/tuts/foo$ du -hs node_modules/ 372M node_modules/ There are 43K+ js files in node_modules and about 35K+ other stuff372M? For an empty app? 70K+ files?What doesnpx create-react-app foo actually do then?

Submitted May 20, 2020 at 07:47AM by jpflathead

No comments:

Post a Comment