r/node • • Mar 19 '18

When you run out of disk space

Post image
664 Upvotes

54 comments sorted by

45

u/zoon_politikon Mar 20 '18

have you guys tried pnpm

4

u/Lamproie Mar 20 '18

I'll look into this thx

1

u/dooatito Mar 20 '18 edited Mar 22 '18

This looks awesome, is there any catch to using this?

9

u/amdelamar Mar 20 '18

npm install -g pnpm (╯°□°)╯︵ ┻━┻

2

u/l0gicgate Mar 20 '18

Wow this is phenomenal. Thanks!

1

u/random523 Mar 20 '18

Something I badly need. Thanks!

1

u/GhostMcFunky Apr 11 '18

You are a god. I assume you rule Nodehalla alongside Atom.

5

u/konaraddio Mar 20 '18

You should post this to r/ProgrammerHumor too

1

u/Lamproie Mar 20 '18

Good idea!

5

u/vidro3 Mar 20 '18

npm prune.

if many of those modules are for projects you aren't actively working on

rm -rf find -type d -name a

via https://stackoverflow.com/questions/13032701/how-to-remove-folders-with-a-certain-name#13032747

1

u/Lamproie Mar 20 '18

Thanks, didn't know about prune!

8

u/haCkFaSe Mar 20 '18

Is this hyperbole?

14

u/Lamproie Mar 20 '18

maybe

5

u/joshmanders Mar 20 '18

I'd lol hard if Apple actually put node_modules size definition into Storage identification.

4

u/Ben_johnston Mar 20 '18

ya

1

u/[deleted] Mar 20 '18

nah

124

u/alppawack Mar 19 '18

just delete some photos

12

u/SkaterDad Mar 20 '18

On the plus side, that's 204 GB of code you don't have to write anymore.

4

u/cykelpop Mar 25 '18

204 GB of code that will bundle down to 200k. 🤷‍♂️

19

u/BenjiSponge Mar 19 '18

Me too, thanks.

8

u/kevleyski Mar 20 '18

250GB was never enough for anyone. I hate having to have an external SSD :-(

6

u/Throwawayingaccount Mar 22 '18

You youngins and your huge harddisks, I remember when CDs had more storage than a harddisk.

1

u/MiesL Mar 25 '18

It has always been fine for me. Then I got into digital forensics and needed a lot of VMs. Especially file carving sucks up disk space.

-1

u/joshmanders Mar 20 '18

Really? I have like 400GB of my 500GB drive left.

0

u/[deleted] Mar 20 '18

[deleted]

2

u/joshmanders Mar 20 '18

Damn, what do you keep on your machine? I don't keep anything of importance on my actual drive, I store it in dropbox/icloud, only stuff actually on my machine is code, and if i don't have a project in active development, I remove it and keep it in git.

26

u/lepuma Mar 20 '18

lol wut, do you have like every npm module?

8

u/imwearingyourpants Mar 20 '18

Don't you usually get a copy of everything when you install one package? And multiple times because all use different versions of the same packages?

3

u/Oobert Mar 20 '18

Can't tell if trolling or have no idea how npm works...

1

u/lepuma Mar 20 '18

I guess I just don’t have that many globally installed packages. There’s no way the whole dependency chain is that big, but I will take a look at work.

10

u/TheV295 Mar 20 '18

No shit, trying to learn React and Electron at the same time, one of the “boiler plate” repos downloads 404 MB of dependencies

5

u/ddwrt1234 Mar 20 '18

Dood 10gb of photos, you can get rid of those and you'll be set

2

u/ABrownApple Mar 20 '18

Get a 1tb storage only for node modules

1

u/B-R0ck Mar 21 '18

get an external drive for cheap for those photos

1

u/nmrshll Jun 03 '18

Where is the docker images section ???

-88

u/[deleted] Mar 19 '18

rofl who actually stores all their data on an SSD? That's dumb... get a NAS

Also, if you have a server available it's worth running your own npm repo

66

u/[deleted] Mar 19 '18

Is it just me or is there a lot of condescending people in this sub? I mean me too thanks

3

u/r0ck0 Mar 20 '18

Seems to be pretty much the default state of any kind of technical forum.

Reddit seems to be slightly better than most due to the voting system. But then you also get circlejerks against minority opinions too. But seems better on average.

1

u/LetReasonRing Mar 20 '18

Yeah, I find both here and /r/JavaScript tend to be pretty hostile compared to other subreddits.

1

u/[deleted] Mar 20 '18

*are

17

u/coyote_of_the_month Mar 19 '18

I'm going to go with "someone who's using a Macbook Air." Probably a personal machine, likely a student.

15

u/MattBlumTheNuProject Mar 19 '18

Developers who are cloning a repo and working in their dev environment?

9

u/mattindustries Mar 19 '18

People who routinely work without great internet.

-1

u/[deleted] Mar 20 '18

I reside in Australia currently... what do you think we have stellar internet or something?

1

u/mattindustries Mar 20 '18

I am going to share some wisdom that might blow your mind. Not every use case is like your use case. This is something to keep in mind when not only developing, but anytime you might think “that has no use”. Remembering this will make you a better developer.

On that note, I travel a lot. I am often without any internet in some remote areas. I have also been at coffee shops which struggle with Skype. Beyond that there are also times when you may want to actually test your Electron apps before deploying them.

5

u/outtokill7 Mar 20 '18

Cool, you willing to pay for it?

0

u/[deleted] Mar 20 '18

The bigger question is, is this person willing to risk losing the ability to access their machine / files... SSD's = limited write cycles you know.

1

u/outtokill7 Mar 20 '18

I'll assume no then. "just get a NAS" isn't possible for everyone. I would love to have a NAS, but they are expensive. Everyone has their own reasons for doing things. You don't need to be a dick to people because they didn't do something the way you would.

1

u/MiesL Mar 25 '18

There’s hardly a problem with the limited cycles. Your ssd will just shrink slowly over time. Catastrophic failures are much more scary but happen on any storage medium.

3

u/[deleted] Mar 20 '18

My main computer is a 2017 MacBook Pro with 2TB of NVMe SSD storage. I have almost everything stored on it and it's so much better than relying on a NAS, which won't be able to travel with me.

2

u/[deleted] Mar 20 '18

wat? who stores stuff on hard disk in 2018?

1

u/[deleted] Mar 20 '18

Me, especially for critical files, because HDD's still have better recovery/redundancy potential then SSD's.

If a HDD fails you can swap out the controller board, or take it to a forensic data specialist to replace the stepper motor, or bearing i.e. there are plenty of things you can do to recover your data...

If a NAND or 3Dxpoint drive fails?... Good luck recovering what was lost.

Also in larger capacities spinning rust is still cheaper then solid state memory, so for example if you have a 150TB server it would be far cheaper currently to use HDD's.

1

u/OzziePeck Mar 20 '18

I store everything on an SSD and the rest on iCloud. Not everyone wants another computer draining power in their house...

0

u/[deleted] Mar 20 '18

Irrelevant argument, if you want modern conveniences you need power and so saying that "oh i don't like the power drain" when a properly configured nas/server with a union file system would only eat up about 40W is just dumb, because if you're going to get down to that granularity im going to ask why you have any lightbulbs at your house, no why do you even run a laptop at all that still eats 15W of power minimum?