DEV Community

Discussion on: When npm tells you you're hosed

Collapse
 
stereobooster profile image
stereobooster

This is exactly the reason why I switched to yarn

Collapse
 
karataev profile image
Eugene Karataev

I used yarn when npm didn't have package-lock by default. Now I don't see much difference between both package managers.

Collapse
 
stereobooster profile image
stereobooster • Edited

Yeah I thought so too, at first. Tried to switch back, but after a while I realise that npm still doing its thing. You steel need to rm -rf node_modules from time to time. I don't need to do this with yarn (only for exceptional cases), where is with npm I'm doing it like once a week

Thread Thread
 
john_papa profile image
John Papa

Interesting. I wonder if that’s happenstance or something deeper. I’ll poke around