getstorybook says Unsupported Project type. in an empty project



If you want to install storybook with getstorybook command in your empty project, it instructions it is an unsupported Project type as below.

mkdir example-project && cd $_
npm init -y
getstorybook - the simplest way to add a storybook to your project. 

 • Detecting project type. ✓
    Unsupported Project type. (code: UNDETECTED)
    Visit for more information.


The Author wrote the instruction in below file.

It looks like we need to install react.js before using getstorybook command.

npm install --save react react-dom

retry it


Now, we can use npm run storybook. Enjoy:)