Storybook: sh: start-storybook: command not found

Created on 7 Jul 2017  ·  3Comments  ·  Source: storybookjs/storybook

I was followed the instruction from the official website:

$ npm i -g @storybook/cli
$ cd my-react-app
$ getstorybook

sh: start-storybook: command not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] storybook: start-storybook -p 6006
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] storybook script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/peterchang/.npm/_logs/2017-07-07T09_10_13_275Z-debug.log

image

cli question / support

Most helpful comment

Fix

$ npm i --save-dev @storybook/react
$ npm run storybook

All 3 comments

Fix

$ npm i --save-dev @storybook/react
$ npm run storybook

For some reason @storybook/react wasn't added to your project dependencies?

That's a bug in our CLI, I think there's already an issue for it:
https://github.com/storybooks/storybook/issues/1378

Actually our CLI needs an overhaul:
https://github.com/storybooks/storybook/issues/1108

Thanks for reporting your fix!

looks like we discuss the same issue here: #311

Was this page helpful?
0 / 5 - 0 ratings