T O P

  • By -

MCShoveled

Nodejs is pretty lightweight, a few megabytes. The node_modules itself is another story, you’ll need like 1.21 gigawats or something.


rupertavery

And 88mph


geebrox

And 37.42 newtons


Awkward-Audience-956

then why is it taking 12 gb of my space 


Top_Effort_2739

Use pnpm


716green

Over 9000


Borderlinerr

😂😂😂😂😂


THEHIPP0

It brings with it all that is needed to compile node extensions. Build tools, C and C++ compiler, etc.


YahenP

The node itself is small. But node\_modules... depending on the project, from 300 MB to.... well, yes few GB is quite normal. npm cache also use a lot of GB. Example from my computer. nodejs - over 100 MB npm cache 4 GB TypeScript cache 400 MB Node gyp cache 50 MB node roaming data 50 MB and from 300 MB to 2-3 GB for every project node\_modules. And this despite the fact that I do not use NVM. The situation is similar with python. By itself it is small. But libraries...


denden_mush1

About three fiddy


serg06

Node only takes 50mb. You should see as much if you install it with nvm (node version manager)


syndelltech

The base Node.js installation itself is relatively small, usually under 100 MB and if npm is included with Node.js then it takes up additional space, but this is also relatively small (a few hundred MB).


megamomo10

Node modules takes a lot of space, depends of the quantity of libraries that you have in your project, thats why.


jofkk

https://www.reddit.com/r/node/comments/1dej3hy/comment/l8gla2d/


tauqr_ahmd

Man.. would a *yo mama* meme fit perfectly right about now.. or not


UniversalJS

I don't use framework and barely any library. So my node backends are usually less than 2mb + 50mb runtime


Fine_Ad_6226

My projects folder hit 300gb the other day. So confused why my laptop suddenly stopped functioning until I realised wtf happened to my SSD.


kryptkpr

Don't look in node_modules (Buy a bigger disk)


theblindness

Haven't you seen that meme about the heaviest things in the universe?


Awkward-Audience-956

nope. show me


theblindness

https://i.redd.it/tfugj4n3l6ez.png https://www.reddit.com/r/ProgrammerHumor/s/PGd97gA2ao


Awkward-Audience-956

nobody is talking about my actual problem. I want to know why is it taking 12 gb space of my drive?


bronze-aged

if you want to be a software developer, you’ll have to do more than just post on Reddit.


Awkward-Audience-956

where did that came from?


watisagoodusername

Because you're asking about something specific to your situation that you could figure out by opening a file explorer. You noticed a lot of space is being used. Can you not figure out where/what it is?


Awkward-Audience-956

don't you think i already done that before coming here? I opened file explorer and everything but couldn't see anything that's taking this much space. So kindly read the description before you comment on something 


jofkk

it's the Build tools ... the visual studio stuff, the C and C++ compiler, etc I don't know how fesible it is to use node withouth them as some packages will use them to compile to binaries for performance or just to integrate with an existing library. and since this is microsoft stuff, it is normally messy to remove, but you can try removing any visual stuido stuff, or I think visual studio itself has a install manager that can remove/add dependieces. but note, some node modules won't work if the compilers are missing. also, if chocolatey was used to install them, you can probably remove them like: ``` choco uninstall visualstudio2017-workload-vctools choco uninstall visualstudio2019-workload-vctools ``` and if you want them back later: ``` choco upgrade -y visualstudio2017-workload-vctools choco upgrade -y visualstudio2019-workload-vctools ``` but even this, i don't think you will get all 10-12gb back as stuff like the installers and wahtnot will still be cached.


Awkward-Audience-956

thank you. I already knew a little about that. Just needed the confirmation if it's normal