{"id":21080,"library":"create-vite","title":"create-vite","description":"Scaffolding tool for Vite projects. Version 9.0.6 (current stable), released alongside Vite 8.x. Requires Node.js 20.19+ or 22.12+. Provides interactive CLI to bootstrap projects from official templates (vanilla, vue, react, svelte, lit, solid, preact, qwik) with TypeScript variants. Alternative to manual setup or CRA. Supports npm, yarn, pnpm, bun, deno. Frequently updated to match Vite releases. Community templates available via Awesome Vite.","status":"active","version":"9.0.6","language":"javascript","source_language":"en","source_url":"https://github.com/vitejs/vite","tags":["javascript"],"install":[{"cmd":"npm install create-vite","lang":"bash","label":"npm"},{"cmd":"yarn add create-vite","lang":"bash","label":"yarn"},{"cmd":"pnpm add create-vite","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Use npm create, not npx of installed package. CLI tool, not a library.","wrong":"npm i create-vite && npx create-vite","symbol":"create-vite","correct":"npm create vite@latest"},{"note":"Yarn's create command is the recommended way, avoid installing the package globally.","wrong":"yarn add create-vite && yarn create-vite","symbol":"yarn create","correct":"yarn create vite"},{"note":"PNPM's create command; do not install the package separately.","wrong":"pnpm add create-vite && pnpm create-vite","symbol":"pnpm create","correct":"pnpm create vite"}],"quickstart":{"code":"npm create vite@latest my-app -- --template react-ts\ncd my-app\nnpm install\nnpm run dev","lang":"typescript","description":"Scaffold a new Vite project with React+TypeScript template, install dependencies, and start dev server."},"warnings":[{"fix":"Upgrade Node.js to v20.19+ or v22.12+.","message":"Requires Node.js 20.19+ or 22.12+ as of create-vite 9.0.0.","severity":"breaking","affected_versions":">=9.0.0"},{"fix":"Use Node.js 18.18+ or use an older create-vite version.","message":"create-vite 8.x dropped support for Node.js < 18.18.0.","severity":"breaking","affected_versions":">=8.0.0 <9.0.0"},{"fix":"Always specify `--template <name>` when using command-line arguments.","message":"The `--template` flag is now required for non-interactive use; older versions allowed omitting it.","severity":"deprecated","affected_versions":">=5.0.0"},{"fix":"Use `npm create vite@latest my-app -- --template vue` (note `--` before `--template`).","message":"npm requires extra double-dash (`--`) before options when using `npm create` with additional args.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Use lowercase template names: `vue`, `react-ts`, `svelte`, etc.","message":"Template names are case-sensitive and must match exactly; e.g., `react-ts` not `React-TS`.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Upgrade Node.js to v20.19+ or v22.12+.","cause":"Using an outdated Node.js version.","error":"Node.js version \\d+\\.\\d+\\.\\d+ detected. This version of create-vite requires Node.js 20.19+ or 22.12+."},{"fix":"Use `npm create vite@latest` (or yarn/pnpm/bun create) instead of `npx create-vite`.","cause":"Running `npx create-vite` without installing or using the wrong package manager command.","error":"Error: Cannot find module 'create-vite'"},{"fix":"Use one of the official templates: vanilla, vanilla-ts, vue, vue-ts, react, react-ts, preact, preact-ts, lit, lit-ts, svelte, svelte-ts, solid, solid-ts, qwik, qwik-ts.","cause":"Specified a template that does not exist in the official list.","error":"Unknown template: my-template"},{"fix":"Add `--template <name>` to the command, e.g., `npm create vite@latest my-app -- --template react`.","cause":"Using extra arguments (e.g., project name) without specifying a template.","error":"The `--template` flag is required when using additional arguments."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}