Registry / devops / create-vite

create-vite

JSON →
library9.0.6jsnpmunverified

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.

npm install create-vite
INSTALL
IMPORT
SIG · CREATE-VITE
C
create-vite
devopsjavascriptv9.0.6
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18223 runs
build_error
glibc
node 18223 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

create-vite
npm create vite@latest
npm i create-vite && npx create-vite
Use npm create, not npx of installed package. CLI tool, not a library.
yarn create
yarn create vite
yarn add create-vite && yarn create-vite
Yarn's create command is the recommended way, avoid installing the package globally.
pnpm create
pnpm create vite
pnpm add create-vite && pnpm create-vite
PNPM's create command; do not install the package separately.

Scaffold a new Vite project with React+TypeScript template, install dependencies, and start dev server.

npm create vite@latest my-app -- --template react-ts cd my-app npm install npm run dev
create-vite --version
Debug
Known issues
breakingRequires Node.js 20.19+ or 22.12+ as of create-vite 9.0.0.
fix
Upgrade Node.js to v20.19+ or v22.12+.
affects: >=9.0.0
breakingcreate-vite 8.x dropped support for Node.js < 18.18.0.
fix
Use Node.js 18.18+ or use an older create-vite version.
affects: >=8.0.0 <9.0.0
deprecatedThe `--template` flag is now required for non-interactive use; older versions allowed omitting it.
fix
Always specify `--template <name>` when using command-line arguments.
affects: >=5.0.0
gotchanpm requires extra double-dash (`--`) before options when using `npm create` with additional args.
fix
Use `npm create vite@latest my-app -- --template vue` (note `--` before `--template`).
affects: >=1.0.0
gotchaTemplate names are case-sensitive and must match exactly; e.g., `react-ts` not `React-TS`.
fix
Use lowercase template names: `vue`, `react-ts`, `svelte`, etc.
affects: >=1.0.0
Errors
Common errors & fixes
Node.js version \d+\.\d+\.\d+ detected. This version of create-vite requires Node.js 20.19+ or 22.12+.
Using an outdated Node.js version.
fix
Upgrade Node.js to v20.19+ or v22.12+.
Error: Cannot find module 'create-vite'
Running `npx create-vite` without installing or using the wrong package manager command.
fix
Use `npm create vite@latest` (or yarn/pnpm/bun create) instead of `npx create-vite`.
Unknown template: my-template
Specified a template that does not exist in the official list.
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.
The `--template` flag is required when using additional arguments.
Using extra arguments (e.g., project name) without specifying a template.
fix
Add `--template <name>` to the command, e.g., `npm create vite@latest my-app -- --template react`.
Upgrade
Version history
9.0.6latest on npm
Audit
Dependencies

No dependency data recorded yet.

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