-
-
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
npx sb init ends abruptly with EBADPLATFORM error #14433
Comments
I tried to install one of the deps (
|
@tooppaaa you use windows right? ever seen this? |
All good on my side with a fresh create-react-app using the same command. However I'm running node 12. Any chance you can downgrade and let us know @spoike ? |
I've switched over to 12.22.0 with nvm for windows. And
However
Running You can do the following on 15.13.0 after successful run of
|
Tried to issue the
edit: I accidentally ran 15 instead of 14, but can confirm it works on 14. |
I get the same issue, but for a Vue application.
|
Not working in v14.16.0 |
I didn't check what npm version I used on 14.16.0, but it could be related to npm rather than node instead (since it fails due to the |
This might be related to this issue on npm/cli project, where EBADPLATFORM is treated as an error rather than a warning: |
My case
change package-lock.json
to
will you try add |
Hade the same issue, installed latest Node (v16.3.0) with npm v7.15.1 and it seems to work fine now. Running react v17.0.2. |
I still have the same issue running
|
Same issue on node v18.17.0 and npm 9.6.7 when run this command on React 18 project • Installing dependencies |
@SunnySun1027 Do you have Could you also go through these possible fixes? |
3q, That's right! The project used the @next/swc-darwin-arm64 package and I installed by --force command then saved into my package.json. npx sb init will kindly to add the "--force " parameter to install the project dependencies. |
May I ask you why |
Describe the bug
Installing storybook on a create react app based project appears to crash on Windows due to usage of
fsevents
.*snip-snip*
added in logs below for NDA reasons.The following folders are added:
.storybook
andstories
. Nothing is changed inpackage.json
.npm run storybook
doesn't work either as script is missing:The debug log from npm-cache ends with this:
To Reproduce
Steps to reproduce the behavior:
npx sb init
Expected behavior
No errors, and with package.json updated with required packages and a
storybook
task.Screenshots
Not applicable
Code snippets
Not applicable
System
Results of
npx sb@next info
:Additional context
react-scripts@4.0.1
.The text was updated successfully, but these errors were encountered: