r/node • • Jun 28 '21

Node.js humor

1.5k Upvotes

79 comments sorted by

View all comments

6

u/zvive Jun 28 '21

I once ran a script for old code and side project ideas to clean out all node modules.... Goddamn I got rid of like 150gb just in node dependencies... Jesus why!

I wish you could somehow get webpack but use cdn as actual source and still use import es6 etc... Or at least have one global node modules folder and then Vue/2.56, Vue/2.57 so versioning isn't an issue but you only ever have one of everything....

2

u/FriesWithThat Jun 29 '21

Another thing people can do is run npx npkill in their projects directory.

This tool allows you to list any node_modules directories in your system, as well as the space they take up. You can then select which ones you want to erase to free up space. Yay!