Freeing up disk space
I am chronically low on disk space. Whenever Photoshop complains or a macOS update comes through, here are some go to commands to quickly free up some disk space (at least temporarily).
npm packages
Cleaning Yarn's cache can free up several gigabytes of disk space:
yarn cache clean
Simlarly, to clean npm
's cache:
npm cache clean --force
In a pinch, you can delete all node_modules
folders from within the current working directory:
find . -name "node_modules" -type d -exec rm -rf '{}' +