Skip to content

[Bug]: npm create storybook@latest in framework-less project doesn't work because it can't detect a framework #35045

@kleinfreund

Description

@kleinfreund

Describe the bug

I'm trying to create a new project with storybook and npm create storybook@latest fails immediately with:

npm create storybook@latest                                    

> npx
> "create-storybook"


┌  Initializing Storybook
│
●  Package manager: npm
│
●  Adding Storybook version 10.4.2 to your project
│
■  Unable to initialize Storybook in this directory.

│  Storybook couldn't detect a supported framework or configuration for your
│  project. Make sure you're inside a framework project (e.g., React, Vue, Svelte,
│  Angular, Next.js) and that its dependencies are installed.

│  Tips:
│  - Run init in an empty directory or create a new framework app first.
│  - If this directory contains unrelated files, try a new directory for Storybook.
│
■  Storybook encountered an error during initialization
│
│  Debug logs are written to:
│  no/debug-storybook.log
│
└  Storybook exited with an error

npm error code 1
npm error path no
npm error command failed
npm error command sh -c "create-storybook"
npm error A complete log of this run can be found in: no/2026-06-03T11_49_56_204Z-debug-0.log

This project doesn't have a framework currently. It's new. I don't know, yet, if I even will use a framework never mind which. I might produce plain HTML without a framework. The storybook error looks like ... not using a framework isn't an option?

Reproduction link

https://no

Reproduction steps

  1. Create an empty project

    mkdir test
    cd test
    echo '{}' > package.json
  2. Run npm create storybook@latest

System

Not relevant

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions