-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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]: Archlinux, Svelte, Unable to find versions of @storybook/cli using npm #27236
Comments
It's an issue with the NPM version. I upgraded to 10.8 and also encountered this issue. Just adjust the NPM version to 10.5 and below |
I had the same issue. Thanks @mariowenak, I downgraded npm version to 10.5 and now it is working |
This also happens in macOS with init and upgrade commands. Downgrading npm to 10.5 fixes the error. |
I had the same issue with
|
Is there a fix for this ? I'm seeing the error when running Environment details Looking at the source file https://github.com/storybookjs/storybook/blob/v8.1.4/code/lib/core-common/src/js-package-manager/NPMProxy.ts#L244 it tries to parse the result as JSON, but if searching for a single version would always return a single string which might be the reason it is failing. Not sure if that's an issue with the
|
ignore me, I somehow had npm@10.8.0 installed in my dependencies for my project |
I installed all kinds of different versions now, but I keep getting the error. Had npm 10.2.4, 10.7.0, 10.5.0 |
It seems the issue is resolved in |
Describe the bug
Since i wanna update to Storybook 8 i get this error. tyin to install the cli globaly, set the ownership and so on to the user but noring helps.
Reproduction link
localhost
Reproduction steps
just try to install with the command npx sb init
System
Additional context
npx sb init
Error: Unable to find versions of @storybook/cli using npm
at NPMProxy.runGetVersions (/usr/lib/node_modules/@storybook/cli/node_modules/@storybook/core-common/dist/index.js:37:639)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async doInitiate (/usr/lib/node_modules/@storybook/cli/dist/generate.js:146:992)
at async withTelemetry (/usr/lib/node_modules/@storybook/cli/node_modules/@storybook/core-server/dist/index.js:28:3599)
at async initiate (/usr/lib/node_modules/@storybook/cli/dist/generate.js:180:245)
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
The text was updated successfully, but these errors were encountered: