What it is
Pre-bundled dependencies Vite stores to start the dev server faster.
Can you delete it?
Yes, it is rebuilt automatically. Vite rebuilds it on the next dev-server start.
How to clean it safely
- Stop the dev server.
- Delete the folder, or start Vite with --force.
Step-by-step guide: Delete node_modules safely →
Related folders
- Turborepo cache ·
<project>/.turbo - npx cache ·
~/.npm/_npx - Bun install cache ·
~/.bun/install/cache - Deno cache ·
~/Library/Caches/deno - npm cache ·
~/.npm - node-gyp headers ·
~/Library/Caches/node-gyp
Questions
Is it safe to delete <project>/node_modules/.vite?
Yes, it is rebuilt automatically. Vite rebuilds it on the next dev-server start.
Let the raccoon do it, safely
Junk Raccoon finds this clutter for you, shows every file first, and keeps a one-click way back. Free to download, no account, no ads.
Download for Mac