{"id":26862,"library":"create-vite-init","title":"create-vite","description":"Official scaffolding tool for Vite projects. Version create-vite@9.0.6 is bundled with Vite 8.0.10. Released frequently alongside Vite. Key differentiator: interactive CLI with template selection for vanilla, Vue, React, Preact, Lit, Svelte, Solid, Qwik (with JS/TS variants). Supports npm, yarn, pnpm, bun. Requires Node.js 18+ (some templates need higher). Community templates available via Awesome Vite.","status":"active","version":"1.0.33","language":"javascript","source_language":"en","source_url":"https://github.com/vitejs/vite","tags":["javascript"],"install":[{"cmd":"npm install create-vite-init","lang":"bash","label":"npm"},{"cmd":"yarn add create-vite-init","lang":"bash","label":"yarn"},{"cmd":"pnpm add create-vite-init","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[],"quickstart":{"code":"npm create vite@latest my-vue-app -- --template vue\ncd my-vue-app\nnpm install\nnpm run dev","lang":"typescript","description":"Creates a new Vite + TypeScript Vue project using npm. Shows template selection and dev server start."},"warnings":[{"fix":"Use `npm create vite@latest my-app -- --template vue` (with `--`). For yarn: `yarn create vite my-app --template vue` (no `--`).","message":"npm 7+ requires extra double-dash (--) before template option, but yarn/pnpm/bun do not.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Upgrade Node.js to 18+ (prefer 20+). Check template requirements.","message":"Vite 5 dropped support for Node.js <18. Some templates may require Node.js 20+.","severity":"breaking","affected_versions":">=5.0.0"},{"fix":"Use `react-swc-ts` for better performance, or keep `react-ts` for standard compiler.","message":"Template option `--template react-ts` is now `react-swc-ts` in newer versions? Actually, both exist. But `react-ts` is still valid.","severity":"deprecated","affected_versions":">=4.0.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Use `npm create vite@latest` or install globally: `npm install -g create-vite`","cause":"Using `npx create-vite` without @latest or missing package.","error":"Error: Cannot find module 'create-vite'"},{"fix":"Check template list. Use official template name like `vue-ts`. Ensure internet connection.","cause":"Network issues or wrong template name.","error":"Error: Failed to download template from GitHub"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}