Is it safe to delete Vite dependency cache?

<project>/node_modules/.vite · Safe to delete

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

  1. Stop the dev server.
  2. Delete the folder, or start Vite with --force.

Step-by-step guide: Delete node_modules safely →

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