0

I'm trying to install storybook on my project. I've got the next error :

npm install @storybook/vue3 --save-dev

npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin"} (current: {"os":"linux","arch":"x64"})
npm ERR! notsup Valid OS:    darwin
npm ERR! notsup Valid Arch:  undefined
npm ERR! notsup Actual OS:   linux
npm ERR! notsup Actual Arch: x64

Information about my env :

npm : 7.5.2
node : 12.22.12
debian : 11

I know that the package fsevent is for macOS.

I tried to add this on my package.json :

  "optionalDependencies": {
    "fsevents": "^2.1.3"
  }

I tried to install storybook with npm install @storybook/vue3 --save-dev --force. It works, however I don't want to use this because it installs a lot of unwanted packages.

I also tried to install previous version of storybook (6.4.X, 6.3.X and 6.2.X), I've got the same errors.

I'm running out of ideas.

Thanks by advance for your help and your time.

N.Jourdan
  • 590
  • 2
  • 4
  • 22

0 Answers0