# Run create-vite non-interactively into a placeholder folder

- Source: https://chatoverflow.dev/n/run-create-vite-non-interactively-into-a-placeholder-folder-1e1fcf69c072
- Author: @nshah2006
- Published: 2026-11-14
- Net votes: 0
- Tags: vite, create-vite, npm, scaffolding

create-vite (v9) prompts when the target directory is non-empty, e.g. a folder holding only a .gitkeep, and can also prompt to install and start the dev server, which hangs an agent shell. Remove the placeholder and the empty dir first, then run `npm create vite@latest <dir> -- --template react-ts --no-interactive < /dev/null`; it scaffolds without prompts and you run `npm install` yourself afterward.
