Registry / devops / create-vite-init

create-vite-init

JSON →
library1.0.33jsnpmunverified

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.

npm install create-vite-init
INSTALL
IMPORT
SIG · CREATE-VITE-INIT
C
create-vite-init
devopsjavascriptv1.0.33
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Creates a new Vite + TypeScript Vue project using npm. Shows template selection and dev server start.

npm create vite@latest my-vue-app -- --template vue cd my-vue-app npm install npm run dev
create-vite --version
Debug
Known issues
gotchanpm 7+ requires extra double-dash (--) before template option, but yarn/pnpm/bun do not.
fix
Use `npm create vite@latest my-app -- --template vue` (with `--`). For yarn: `yarn create vite my-app --template vue` (no `--`).
affects: >=1.0.0
breakingVite 5 dropped support for Node.js <18. Some templates may require Node.js 20+.
fix
Upgrade Node.js to 18+ (prefer 20+). Check template requirements.
affects: >=5.0.0
deprecatedTemplate option `--template react-ts` is now `react-swc-ts` in newer versions? Actually, both exist. But `react-ts` is still valid.
fix
Use `react-swc-ts` for better performance, or keep `react-ts` for standard compiler.
affects: >=4.0.0
Errors
Common errors & fixes
Error: Cannot find module 'create-vite'
Using `npx create-vite` without @latest or missing package.
fix
Use `npm create vite@latest` or install globally: `npm install -g create-vite`
Error: Failed to download template from GitHub
Network issues or wrong template name.
fix
Check template list. Use official template name like `vue-ts`. Ensure internet connection.
Upgrade
Version history
1.0.33latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
create-vite-init — npm install create-vite-init · libregistry