npm cache location on Mac: Find it and check its size

Find the cache npm actually uses and tell it apart from each project’s installed dependencies before trying to free disk space.

VibeVac ·

Find the path npm actually uses

In your usual project terminal, run npm config get cache. On macOS the default is usually ~/.npm, but configuration can point elsewhere. Use the printed path, not an assumed one. This check does not clean the cache.

Measure the right folder

In Finder, choose Go to Folder, open the reported path, then check the folder’s size with Get Info. The npm cache is not the project’s node_modules: that contains installed dependencies. Write down the sizes separately and don’t add cached package entries as if they were separate files.

Stop after the inspection

npm describes its cache as self-healing. npm cache verify also garbage-collects unneeded data, so don’t use it as a read-only size check. If the cache is small, look elsewhere instead of touching it. Recheck free space separately after any deliberate change.

npm’s configuration reference

npm’s cache documentation

See what VibeVac inspects on macOS