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

[Bug]: sh: 1: storybook: not found | after install #30681

Open
jucajuca opened this issue Feb 26, 2025 · 2 comments
Open

[Bug]: sh: 1: storybook: not found | after install #30681

jucajuca opened this issue Feb 26, 2025 · 2 comments

Comments

@jucajuca
Copy link

Describe the bug

npm create storybook@8.6

Need to install the following packages:
create-storybook@8.6.0
Ok to proceed? (y) y
╭──────────────────────────────────────────────────────╮
│                                                      │
│   Adding Storybook version 8.6.0 to your project..   │
│                                                      │
╰──────────────────────────────────────────────────────╯
✔ What do you want to use Storybook for? › Testing: Fast browser-based component tests, watch mode
 • Detecting project type. ✓
Installing dependencies...


up to date, audited 8 packages in 2s

found 0 vulnerabilities
 • Adding Storybook support to your "React" app • Detected Vite project. Setting builder to Vite. ✓

  ✅ Getting the correct version of 0 packages
. ✓
Installing dependencies...


up to date, audited 8 packages in 2s

found 0 vulnerabilities

attention => Storybook now collects completely anonymous telemetry regarding usage.
This information is used to shape Storybook's roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://storybook.js.org/telemetry

> npx storybook@8.6.0 add @storybook/experimental-addon-test@8.6.0
Need to install the following packages:
storybook@8.6.0
Ok to proceed? (y) 
Verifying @storybook/experimental-addon-test
The version of @storybook/experimental-addon-test (8.6.0) you are installing is not the same as the version of Storybook you are using (undefined). This may lead to unexpected behavior.
Installing @storybook/experimental-addon-test@^8.6.0
Adding '@storybook/experimental-addon-test@8.6.0' to the "addons" field in .storybook/main.ts
╭──────────────────────────────────────────────────────────────────────────────╮
│                                                                              │
│   Storybook was successfully installed in your project! 🎉                   │
│   Additional features: Testing                                               │
│                                                                              │
│   To run Storybook manually, run npm run storybook. CTRL+C to stop.          │
│                                                                              │
│   Wanna know more about Storybook? Check out https://storybook.js.org/       │
│   Having trouble or want to chat? Join us at https://discord.gg/storybook/   │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

Running Storybook

> keycloakify-starter@0.0.0 storybook
> storybook dev -p 6006 --initial-path=/onboarding --quiet

sh: 1: storybook: not found

Reproduction link

/~https://github.com/storybookjs/storybook/

Reproduction steps

I am running

npm create storybook@8.6

see the output above

System

linux ubuntu 24.04
node v20.9.0

Additional context

No response

@valentinpalkovic
Copy link
Contributor

Hi @jucajuca,

Thank you for reporting.

Can you please remove node_modules and reinstall dependencies? It seems that some packages were swallowed during installation.

@jucajuca
Copy link
Author

Thanks for the suggestion.
Also ran

npm cache clean --force

I tried again but with the same results.

npm create storybook@8.6
╭──────────────────────────────────────────────────────╮
│                                                      │
│   Adding Storybook version 8.6.0 to your project..   │
│                                                      │
╰──────────────────────────────────────────────────────╯
✔ What do you want to use Storybook for? › Testing: Fast browser-based component tests, watch mode
 • Detecting project type. ✓
WARN An issue occurred while trying to find dependencies metadata using npm.
WARN An issue occurred while trying to find dependencies metadata using npm.
Installing dependencies...


added 7 packages, and audited 8 packages in 4s

found 0 vulnerabilities
 • Adding Storybook support to your "React" app • Detected Vite project. Setting builder to Vite. ✓

  ✅ Getting the correct version of 0 packages
. ✓
Installing dependencies...


up to date, audited 8 packages in 2s

found 0 vulnerabilities

attention => Storybook now collects completely anonymous telemetry regarding usage.
This information is used to shape Storybook's roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://storybook.js.org/telemetry

> npx storybook@8.6.0 add @storybook/experimental-addon-test@8.6.0
Verifying @storybook/experimental-addon-test
The version of @storybook/experimental-addon-test (8.6.0) you are installing is not the same as the version of Storybook you are using (undefined). This may lead to unexpected behavior.
Installing @storybook/experimental-addon-test@^8.6.0
Adding '@storybook/experimental-addon-test@8.6.0' to the "addons" field in .storybook/main.ts
╭──────────────────────────────────────────────────────────────────────────────╮
│                                                                              │
│   Storybook was successfully installed in your project! 🎉                   │
│   Additional features: Testing                                               │
│                                                                              │
│   To run Storybook manually, run npm run storybook. CTRL+C to stop.          │
│                                                                              │
│   Wanna know more about Storybook? Check out https://storybook.js.org/       │
│   Having trouble or want to chat? Join us at https://discord.gg/storybook/   │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

Running Storybook

> keycloakify-starter@0.0.0 storybook
> storybook dev -p 6006 --initial-path=/onboarding --quiet

sh: 1: storybook: not found


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Needs Discussion
Development

No branches or pull requests

2 participants