All Guides

Is nvm Cache Safe to Delete?

Developer ToolsTypical size: 20MB-500MB
Yes, Safe to Delete

Yes. ~/.nvm/.cache stores downloaded Node.js source tarballs for nvm installs.

Side effects: The next nvm install of a Node version will re-download the tarball.

What is ~/.nvm/.cache?

When nvm downloads Node.js versions, it caches tarballs in ~/.nvm/.cache. This is separate from ~/.nvm/versions/node (the installed runtimes). Safe to delete — nvm re-downloads on demand.

Is it safe to delete?

Yes~/.nvm/.cache is generally safe to delete. The data in this folder is temporary and will be recreated by the application when needed.

Before deleting, make sure:

  • You don't have any important unsaved work in the related application
  • You're not in the middle of a critical task that might need this cached data
  • You understand that initial load times may be slower after deletion

What happens after deletion?

The next nvm install of a Node version will re-download the tarball. The folder will be recreated automatically by the application when needed. This process is typically seamless but may take some time depending on the amount of data that needs to be regenerated.

How to delete it

Recommended

Use MacMop

MacMop finds this folder automatically and lets you delete it safely with one click.

Download MacMop

Terminal

rm -rf ~/.nvm/.cache

Warning: This command permanently deletes the folder. Double-check the path before running.

Finder

  1. Open Finder
  2. Press ⌘ + Shift + G (Go to Folder)
  3. Paste: ~/.nvm/.cache
  4. Move the folder to Trash

MacMop scans all your hidden caches and tells you exactly what's safe to delete.

Download MacMop Free