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
npx is slow because @storybook/cli isn't added to package.json #13464
Comments
Suggestion: either init command should add cli to |
After having run {...
"build-storybook": "build-storybook",
"storybook": "start-storybook -p 9009"
} You can then run |
Hi, I no longer remember where I tried this and I don't remember my motivation for issuing further commands like If that is indeed a legitimate use which can't be serviced by existing binaries in If you feel that those commands are not intended for regular usage, feel free to close the issue. I do want to mention that since |
Definitely not, it should be used to init/upgrade/(rerun some migration) Storybook, get some info needed to open an issue but not much more that's why we didn't include it in the deps automatically installed during initialization. |
Describe the bug
Following the guide at
https://storybook.js.org/docs/vue/get-started/install
, I issuenpx sb init
in a fresh vuejs project.But if I try to issue any further commands, like
npx sb info
, the commands run very slow, because npm is fetching something.Issuing
npm install --save-dev @storybook/cli
solves the issue.System
(some info omitted, please mention if you really need it)
Info before the fix:
After the fix
The text was updated successfully, but these errors were encountered: