The `create-storybook` package is the official command-line interface (CLI) tool for initializing new Storybook projects and adding Storybook to existing projects. It automates the setup of Storybook with various frameworks like React, Vue, Angular, Svelte, and Web Components, configuring builders like Webpack or Vite, and installing necessary dependencies and addons. The current stable version is 10.3.5, with active development indicated by frequent alpha releases (e.g., 10.4.0-alpha.x) suggesting a continuous integration and release cadence, likely leading to major stable updates every few months. Its key differentiator is being the canonical and supported method to get started with Storybook, ensuring compatibility and best practices are followed for a smooth development workflow for UI components in isolation.
npm install create-storybookVerified import paths — ran on the pinned version, not inferred.
Initializes a new Storybook project in the current directory, guides through setup, and then demonstrates how to launch the Storybook development server.
If you use the `@storybook/addon-mcp` for AI-assisted UI development workflows, ensure you upgrade it to version `>=0.5.0` to re-enable component manifests. Otherwise, you might need to manually configure Storybook to re-enable the manifest if a configuration option becomes available, or adjust your workflow.
Ensure your Node.js version is 20 or higher for optimal compatibility. Use a Node.js version manager like `nvm` to easily switch and manage Node.js versions (e.g., `nvm install 20 && nvm use 20`).
Always use `npx storybook@latest init` or `npm create storybook@latest` to ensure you are running the most current version of the installer and benefiting from the latest features and bug fixes.
Avoid installing alpha or beta versions in production environments. Explicitly use `@latest` with `npx storybook@latest init` or `npm create storybook@latest` to get the most recent stable release. If testing pre-release features, be prepared for instability and consult the specific alpha/beta changelogs.
Upgrade your Node.js environment to version 20 or newer. Use `nvm install 20 && nvm use 20` or similar for your preferred Node.js version manager.
Ensure you are using the correct command: `npm create storybook@latest` or `npx storybook@latest init`. Also, ensure your `npm` client is up to date (`npm install -g npm@latest`).
Try reinstalling project dependencies (`npm install` or `yarn install`) in your project directory. If the problem persists, check your `package.json` for conflicting dependencies or try re-running `npx storybook@latest init` with the `--force` flag (if available and appropriate) or consult Storybook's troubleshooting guide for builder-specific issues.
No dependency data recorded yet.