Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sh: start-storybook: command not found #1426

Closed
wahengchang opened this issue Jul 7, 2017 · 3 comments
Closed

sh: start-storybook: command not found #1426

wahengchang opened this issue Jul 7, 2017 · 3 comments

Comments

@wahengchang
Copy link

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! dashboard@0.0.0 storybook: start-storybook -p 6006
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the dashboard@0.0.0 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

@wahengchang
Copy link
Author

Fix

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

@ndelangen
Copy link
Member

ndelangen commented Jul 7, 2017

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:
#1378

Actually our CLI needs an overhaul:
#1108

Thanks for reporting your fix!

@usulpro
Copy link
Member

usulpro commented Jul 12, 2017

looks like we discuss the same issue here: #311

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants