create-vue is the official and recommended command-line interface (CLI) tool for quickly scaffolding new Vue.js projects. Currently at stable version 3.22.2, it is actively maintained by the Vue.js core team with frequent releases to align with Vue, Vite, and ecosystem updates. Its primary differentiator from the legacy Vue CLI is its foundation on Vite, providing a significantly faster development experience through rapid cold starts and instant Hot Module Replacement (HMR). Unlike Vue CLI, create-vue primarily acts as a scaffolding utility, generating a pre-configured project and then delegating subsequent operations to Vite, allowing projects to fully leverage the Vite plugin ecosystem. Since v3.22.0, it defaults to generating TypeScript projects, reflecting the modern Vue development landscape.
npm install create-vueVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to initialize a new Vue 3 project using the interactive `create-vue` CLI, prompting for features like TypeScript, Router, and Pinia. A non-interactive example shows direct flag usage for a full setup.
To create a JavaScript project, use `npm create vue@latest -- --no-typescript` or select JavaScript during the interactive prompt when asked.
Use `npm create vue@latest` for Vue 3 projects or `npm create vue@legacy` for Vue 2 projects to guarantee the desired version.
Prioritize creating new projects with Vue 3 using `npm create vue@latest`. If Vue 2 is strictly required, be fully aware of its EOL status and associated risks.
Consider alternative E2E testing frameworks like Cypress or Playwright for new projects. For existing projects, manually integrate Nightwatch if necessary, or migrate to a supported E2E solution.
Ensure your Node.js environment meets the specified requirements. Tools like `nvm` (Node Version Manager) can help manage multiple Node.js versions effectively.
In PowerShell, enclose the double dashes in single quotes: `npm create vue@latest '--' --typescript --router`.
Ensure you specify the tag: `npm create vue@latest` (for Vue 3) or `npm create vue@legacy` (for Vue 2). If the issue persists, clear your npm cache with `npm cache clean --force`.
`create-vue` is executed via `npm create vue@latest` or `npx create-vue@latest` in your terminal. Do not attempt to import it into your JavaScript/TypeScript files.
If a JavaScript project is desired, ensure to explicitly opt out of TypeScript during scaffolding: `npm create vue@latest -- --no-typescript`. For existing projects, you will need to manually remove TypeScript configurations and dependencies.
Check the `engines.node` requirement for `create-vue` (e.g., `^20.19.0 || >=22.12.0`). Update your Node.js version using a tool like `nvm` to meet the package's requirements.
No dependency data recorded yet.