Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
Tip to free up gigabytes of space if you are a Node.js developer
2 points
santiagogo
10y ago
2 comments
Save
Share
Crawl (cd) to the folder where you have you node projects (eg. /dev) and then just run the following command:
find . -type d -name node_modules -exec rm -rf {} +
Works great before backing up or moving files.
2 comments
2 comments · 2 top-level
top
newest
oldest
WorldMaker
10y ago
Also, upgrading to NPM >= 3 is a big deal for storage space as it flattens node_modules by default, which means fewer duplicate copies of some of the shared libraries you use. (It also means fewer long path issues for us Windows users.)
davidpelaez
10y ago
You're welcome BTW
j
/
k
navigate · click thread line to collapse