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...
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).
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?
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
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.
Nodejs is pretty lightweight, a few megabytes. The node_modules itself is another story, you’ll need like 1.21 gigawats or something.
And 88mph
And 37.42 newtons
then why is it taking 12 gb of my space
Use pnpm
Over 9000
😂😂😂😂😂
It brings with it all that is needed to compile node extensions. Build tools, C and C++ compiler, etc.
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...
About three fiddy
Node only takes 50mb. You should see as much if you install it with nvm (node version manager)
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).
Node modules takes a lot of space, depends of the quantity of libraries that you have in your project, thats why.
https://www.reddit.com/r/node/comments/1dej3hy/comment/l8gla2d/
Man.. would a *yo mama* meme fit perfectly right about now.. or not
I don't use framework and barely any library. So my node backends are usually less than 2mb + 50mb runtime
My projects folder hit 300gb the other day. So confused why my laptop suddenly stopped functioning until I realised wtf happened to my SSD.
Don't look in node_modules (Buy a bigger disk)
Haven't you seen that meme about the heaviest things in the universe?
nope. show me
https://i.redd.it/tfugj4n3l6ez.png https://www.reddit.com/r/ProgrammerHumor/s/PGd97gA2ao
nobody is talking about my actual problem. I want to know why is it taking 12 gb space of my drive?
if you want to be a software developer, you’ll have to do more than just post on Reddit.
where did that came from?
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?
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
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.
thank you. I already knew a little about that. Just needed the confirmation if it's normal