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

npx sb init does not work with NPM v7 #12983

Closed
fczbkk opened this issue Nov 2, 2020 · 61 comments
Closed

npx sb init does not work with NPM v7 #12983

fczbkk opened this issue Nov 2, 2020 · 61 comments

Comments

@fczbkk
Copy link

fczbkk commented Nov 2, 2020

Describe the bug
The init script npx sb init does not work with NPM v7.

To Reproduce
Steps to reproduce the behavior:

  1. Use Node v15 with NPM v7 nvm use 15.
  2. Create a new project, e.g. npx create-react-app my-app.
  3. Go to app directory cd my-app.
  4. Try to init Storybook npx sb init.
  5. An error appears:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR!   react@"^17.0.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.0" from @storybook/[email protected]
npm ERR! node_modules/@storybook/addon-essentials
npm ERR!   dev @storybook/addon-essentials@"^6.0.28" from the root project

Expected behavior
I would expect the command npx sb init to add Storybook to the project, same way as when using older versions of NPM.

System

  System:
    OS: macOS 10.15.7
    CPU: (12) x64 Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
  Binaries:
    Node: 15.0.1 - ~/.nvm/versions/node/v15.0.1/bin/node
    npm: 7.0.3 - ~/.nvm/versions/node/v15.0.1/bin/npm
  Browsers:
    Chrome: 86.0.4240.111
    Firefox: 70.0.1
    Safari: 14.0

Additional context
I think the problem is caused by a breaking change in NPM v7. It now installs peer dependencies automatically:
https://github.com/npm/rfcs/blob/latest/implemented/0025-install-peer-deps.md

@shilman
Copy link
Member

shilman commented Nov 4, 2020

Any idea why it's trying to resolve react-storybook??

Try installing 6.1 instead? We've improved the dependency structure for React17 support.

npx sb@next init

@shilman shilman removed this from the 6.1 essentials milestone Nov 4, 2020
@fczbkk
Copy link
Author

fczbkk commented Nov 4, 2020

@shilman Still does not work. I have tried this:

nvm use 15
npx create-react-app my-app
cd my-app
npx sb@next init

It produces this error:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: @storybook/[email protected]
npm ERR! node_modules/@storybook/react
npm ERR!   dev @storybook/react@"^6.1.0-beta.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @storybook/react@">=5.2" from @storybook/[email protected]
npm ERR! node_modules/@storybook/preset-create-react-app
npm ERR!   dev @storybook/preset-create-react-app@"^3.1.4" from the root project

@shilman
Copy link
Member

shilman commented Nov 4, 2020

Really weird. Will investigate. Thanks!

@shilman
Copy link
Member

shilman commented Nov 4, 2020

Could not repro using brew node@15/npm@7

@Rapi-shiny
Copy link

Hi,

I have the same error with my new VueJS project when I try to use "npx -p @storybook/cli sb init".

node 15 and npm 7

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR! peer react@"^16.8.0" from @storybook/[email protected]
npm ERR! node_modules/@storybook/addon-essentials
npm ERR! dev @storybook/addon-essentials@"^6.0.28" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"17.0.1" from [email protected]
npm ERR! node_modules/react-dom
npm ERR! peer react-dom@"*" from @storybook/[email protected]
npm ERR! node_modules/@storybook/addon-essentials
npm ERR! dev @storybook/addon-essentials@"^6.0.28" from the root project

It requires two different versions of react. How do I do it?

@thisgeek
Copy link

thisgeek commented Nov 4, 2020

For what it's worth, I'm seeing the same behavior.

@thisgeek
Copy link

thisgeek commented Nov 4, 2020

Able to reproduce with the current default node container on dockerhub.

@shilman
Copy link
Member

shilman commented Nov 4, 2020

@Rapi-shiny can you try npx sb@next init instead?

@dmitryweiner
Copy link

dmitryweiner commented Nov 5, 2020

@Rapi-shiny can you try npx sb@next init instead?

[email protected]
[email protected]

This caused a semi successful installation:
2020-11-05T05_06_17_212Z-debug.log
2020-11-05T05_06_17_269Z-debug.log

 sb init - the simplest way to add a Storybook to your project. 

 • Detecting project type. ✓
 • Adding Storybook support to your "Webpack React" app. ✓
 • Preparing to install dependencies. ✓



up to date, audited 1577 packages in 3s

found 0 vulnerabilities
. ✓

To run your Storybook, type:

   npm run storybook 

For more information visit: https://storybook.js.org

npm ERR! Cannot read property 'matches' of undefined

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/dmw/.npm/_logs/2020-11-05T05_10_50_441Z-debug.log

An error occurred while installing dependencies.

npm ERR! code 1
npm ERR! path /home/dmw/projects/html-chat
npm ERR! command failed
npm ERR! command sh -c sb init

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/dmw/.npm/_logs/2020-11-05T05_10_50_493Z-debug.log

@Rapi-shiny
Copy link

@Rapi-shiny can you try npx sb@next init instead?

It works, thank you!

@ghost
Copy link

ghost commented Nov 11, 2020

I have the original problem listed in this bug but also have the following problem when running npx sb@next init.

Using versions:
v15.1.0
7.0.8

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: @storybook/[email protected]
npm ERR! node_modules/@storybook/react
npm ERR! dev @storybook/react@"^6.1.0-beta.7" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @storybook/react@">=5.2" from @storybook/[email protected]
npm ERR! node_modules/@storybook/preset-create-react-app
npm ERR! dev @storybook/preset-create-react-app@"^3.1.5" from the root project
npm ERR!

@gimbo
Copy link

gimbo commented Nov 12, 2020

I can add my voice to the "workaround doesn't work" party.

$ node --version
v15.2.0
$ npm --version
7.0.8

Then after a fresh npx create-react-app my-app, the suggested workaround npx sb@next init fails for me exactly as described by @euan-cowie in the previous comment. (Non-workaround version fails too, of course.)

@nealgist
Copy link

nealgist commented Nov 13, 2020

Same. We cannot integrate storybook into our app even if we do a completely fresh create-react-app build.

$ node --version
v15.2.0
$ npm --version
7.0.10
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.0" from @storybook/[email protected]
npm ERR! node_modules/@storybook/addon-essentials
npm ERR!   dev @storybook/addon-essentials@"^6.0.28" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

I have already tried the --legacy-peer-deps argument but no difference. We have also tried upgrading React but 17.0.1 and 16.14.0 produce the same results. npx sb@next init fails with the exact same errors as npx sb init.

@shilman
Copy link
Member

shilman commented Nov 13, 2020

Is this a problem with 6.1? You can install that with npx sb@next init, or upgrade with npx sb upgrade --prerelease.

@nealgist
Copy link

npx sb upgrade --prerelease

Hi @shilman, npx sb@next init does not work. (Plz see details in my first comment) This remains true in a brand new create-react-app build regardless of which version of React I'm using. Because storybook cannot be installed, trying the upgrade command is futile. (cannot upgrade version of undefined)

@nealgist
Copy link

$ npx sb init results:

 sb init - the simplest way to add a Storybook to your project. 

 • Detecting project type. ✓
 • Adding Storybook support to your "Create React App" based project⸨░░░░░░░░░░░npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react-is
npm ERR!   dev react-is@"^17.0.1" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react-is@"^16.8.0" from @storybook/[email protected]
npm ERR! node_modules/@storybook/addon-essentials
npm ERR!   dev @storybook/addon-essentials@"^6.0.28" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See /Users/nealgist/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/nealgist/.npm/_logs/2020-11-17T13_50_26_020Z-debug.log
An error occurred while installing dependencies.

npm ERR! code 1
npm ERR! path /Users/nealgist/Desktop/Projects/React/architecture
npm ERR! command failed
npm ERR! command sh -c sb init

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/nealgist/.npm/_logs/2020-11-17T13_50_26_048Z-debug.log

$ npx sb@next init results:

sb init - the simplest way to add a Storybook to your project. 

 • Detecting project type. ✓
 • Adding Storybook support to your "Create React App" based project⸨░░░░░░░░░░░npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: @storybook/[email protected]
npm ERR! node_modules/@storybook/react
npm ERR!   dev @storybook/react@"^6.1.0-rc.4" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @storybook/react@">=5.2" from @storybook/[email protected]
npm ERR! node_modules/@storybook/preset-create-react-app
npm ERR!   dev @storybook/preset-create-react-app@"^3.1.5" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See /Users/nealgist/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/nealgist/.npm/_logs/2020-11-17T13_51_37_241Z-debug.log
An error occurred while installing dependencies.

npm ERR! code 1
npm ERR! path /Users/nealgist/Desktop/Projects/React/architecture
npm ERR! command failed
npm ERR! command sh -c sb init

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/nealgist/.npm/_logs/2020-11-17T13_51_37_270Z-debug.log

@keidarcy
Copy link

keidarcy commented Feb 4, 2021

react 17.0.1
npm 7.5.2
Finally, npx --legacy-peer-deps sb init works for me.

@reno1979
Copy link

reno1979 commented Feb 9, 2021

Storybook 16.6
Npm 7

Still unable to retrieve all dependencies

@Rubtsov-2015
Copy link

Help me to downgrade npm 6

@John118118
Copy link

@Rubtsov-2015 you don't need to. Use the --legacy-peer-deps flag. This is exactly why this flag exists.

@shilman
Copy link
Member

shilman commented Feb 20, 2021

@phated is there a temporary workaround where we run --legacy-peer-deps inside sb init so that users don't need to worry about this for now?

@phated
Copy link
Contributor

phated commented Feb 22, 2021

@shilman based on this comment it seems that the flag actually needs to be passed to npx so it can resolve stuff correctly.

As for some of the initial comments, they were just having conflicts between peerDeps in addons that didn't have || ^17 added, which I believe has been corrected since.

@mahasak
Copy link

mahasak commented Mar 2, 2021

i tried

npx sb init
npx sb@next init
npx -p @storybook/cli sb init

all of this 3 commands yields error

 sb init - the simplest way to add a Storybook to your project.

 • Detecting project type. ✓
 • Adding Storybook support to your "React" app⸨░░░░░░░░░░░░░░░░░░⸩ ⠹ idealTre
npm WARN ERESOLVE overriding peer dependency
npm WARN Found: [email protected]
npm WARN node_modules/react
npm WARN   peer react@"^16.8.0 || ^17.0.0" from @material-ui/[email protected]
npm WARN   node_modules/@material-ui/core
npm WARN     peer @material-ui/core@"^4.0.0" from @material-ui/[email protected]
npm WARN     node_modules/@material-ui/icons
npm WARN     1 more (the root project)
npm WARN   25 more (@material-ui/icons, @material-ui/styles, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react@"^16.8.4" from [email protected]
npm WARN node_modules/react-inspector
npm WARN   react-inspector@"^5.0.1" from @storybook/[email protected]
npm WARN   node_modules/@storybook/addon-actions
npm WARN ERESOLVE overriding peer dependency
npm WARN Found: [email protected]
npm WARN node_modules/react
npm WARN   peer react@"^16.8.0 || ^17.0.0" from @material-ui/[email protected]
npm WARN   node_modules/@material-ui/core
npm WARN     peer @material-ui/core@"^4.0.0" from @material-ui/[email protected]
npm WARN     node_modules/@material-ui/icons
npm WARN     1 more (the root project)
npm WARN   25 more (@material-ui/icons, @material-ui/styles, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react@"15.x || 16.x || 16.4.0-alpha.0911da3" from @reach/[email protected]
npm WARN node_modules/@reach/router
npm WARN   @reach/router@"^1.3.3" from @storybook/[email protected]
npm WARN   node_modules/@storybook/api
npm WARN   1 more (@storybook/router)
npm WARN ERESOLVE overriding peer dependency
npm WARN Found: [email protected]
npm WARN node_modules/react-dom
npm WARN   peer react-dom@"^16.8.0 || ^17.0.0" from @material-ui/[email protected]
npm WARN   node_modules/@material-ui/core
npm WARN     peer @material-ui/core@"^4.0.0" from @material-ui/[email protected]
npm WARN     node_modules/@material-ui/icons
npm WARN     1 more (the root project)
npm WARN   19 more (@material-ui/icons, @material-ui/styles, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react-dom@"15.x || 16.x || 16.4.0-alpha.0911da3" from @reach/[email protected]
npm WARN node_modules/@reach/router
npm WARN   @reach/router@"^1.3.3" from @storybook/[email protected]
npm WARN   node_modules/@storybook/api
npm WARN   1 more (@storybook/router)
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR!   peer react@"^16.8.0 || ^17.0.0" from @material-ui/[email protected]
npm ERR!   node_modules/@material-ui/core
npm ERR!     peer @material-ui/core@"^4.0.0" from @material-ui/[email protected]
npm ERR!     node_modules/@material-ui/icons
npm ERR!       @material-ui/icons@"^4.11.2" from the root project
npm ERR!     @material-ui/core@"^4.11.3" from the root project
npm ERR!   peer react@"^16.8.0 || ^17.0.0" from @material-ui/[email protected]
npm ERR!   node_modules/@material-ui/icons
npm ERR!     @material-ui/icons@"^4.11.2" from the root project
npm ERR!   24 more (@material-ui/styles, @material-ui/system, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^0.14.0 || ^15.0.0 || ^16.0.0" from [email protected]
npm ERR! node_modules/@reach/router/node_modules/create-react-context
npm ERR!   create-react-context@"0.3.0" from @reach/[email protected]
npm ERR!   node_modules/@reach/router
npm ERR!     @reach/router@"^1.3.3" from @storybook/[email protected]
npm ERR!     node_modules/@storybook/api
npm ERR!       @storybook/api@"6.1.20" from @storybook/[email protected]
npm ERR!       node_modules/@storybook/addon-actions
npm ERR!       2 more (@storybook/addon-essentials, @storybook/addons)
npm ERR!     1 more (@storybook/router)
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /Users/mpijittum/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/mpijittum/.npm/_logs/2021-03-02T15_00_25_541Z-debug.log
An error occurred while installing dependencies.

npm ERR! code 1
npm ERR! path /Users/mpijittum/src/bigbears/darwin-www
npm ERR! command failed
npm ERR! command sh -c sb init

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/mpijittum/.npm/_logs/2021-03-02T15_00_25_600Z-debug.log

I can successfully install by using npx --legacy-peer-deps sb init

 sb init - the simplest way to add a Storybook to your project.

 • Detecting project type. ✓
 • Adding Storybook support to your "React" app⸨░░░░░░░░░░░░░░░░░░⸩ ⠹ idealTre
npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.

added 636 packages, removed 594 packages, changed 64 packages, and audited 1825 packages in 36s

187 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
. ✓
 • Preparing to install dependencies. ✓



up to date, audited 1825 packages in 2s

187 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
. ✓

To run your Storybook, type:

   npm run storybook

For more information visit: https://storybook.js.org

@shilman
Copy link
Member

shilman commented Mar 3, 2021

Yay!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.2.0-beta.6 containing PR #14106 that references this issue. Upgrade today to the @next NPM tag to try it out!

npx sb upgrade --prerelease

Closing this issue. Please re-open if you think there's still more to do.

@shilman shilman closed this as completed Mar 3, 2021
@shilman
Copy link
Member

shilman commented Mar 3, 2021

Olé!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.1.21 containing PR #14106 that references this issue. Upgrade today to the @latest NPM tag to try it out!

npx sb upgrade

@marcoavazquez
Copy link

doing a npm install I got the same error
using node v10.23.3 was resolved

@shilman
Copy link
Member

shilman commented Apr 5, 2021

@marcoavazquez in npm7

npm install --legacy-peer-deps

@vnglst
Copy link

vnglst commented Apr 10, 2021

Another workaround (that also works for co-workers that might be unaware of the --legacy-peer-deps flag) is creating a .npmrc in your root folder with the following line:

legacy-peer-deps=true

After that npm install should just work (also on CI).

@shilman
Copy link
Member

shilman commented Apr 10, 2021

Great tip @vnglst 💯

@bartenra
Copy link

bartenra commented Apr 21, 2021

@marcoavazquez in npm7

npm install --legacy-peer-deps

This doesn't work for me. I'm getting the same error.

After installing Storybook for a Vue 3 project:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR!   peerOptional react@"^16.8.0 || ^17.0.0" from @storybook/[email protected]
npm ERR!   node_modules/@storybook/addon-actions
npm ERR!     dev @storybook/addon-actions@"^6.3.0-alpha.13" from the root project
npm ERR!     @storybook/addon-actions@"6.3.0-alpha.13" from @storybook/[email protected]
npm ERR!     node_modules/@storybook/addon-essentials
npm ERR!       dev @storybook/addon-essentials@"^6.3.0-alpha.13" from the root project
npm ERR!   peerOptional react@"^16.8.0 || ^17.0.0" from @storybook/[email protected]
npm ERR!   node_modules/@storybook/addon-essentials
npm ERR!     dev @storybook/addon-essentials@"^6.3.0-alpha.13" from the root project
npm ERR!   14 more (@storybook/addon-links, @storybook/addons, react-dom, ...)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"15.x || 16.x || 16.4.0-alpha.0911da3" from @reach/[email protected]
npm ERR! node_modules/@storybook/api/node_modules/@reach/router
npm ERR!   @reach/router@"^1.3.4" from @storybook/[email protected]
npm ERR!   node_modules/@storybook/api
npm ERR!     @storybook/api@"6.3.0-alpha.13" from @storybook/[email protected]
npm ERR!     node_modules/@storybook/addon-actions
npm ERR!       dev @storybook/addon-actions@"^6.3.0-alpha.13" from the root project
npm ERR!       1 more (@storybook/addon-essentials)
npm ERR!     7 more (@storybook/addon-essentials, @storybook/addons, ...)
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See /home/bart/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/bart/.npm/_logs/2021-04-21T14_20_46_600Z-debug.log

@bartenra
Copy link

Alright, not sure how it's solved now, but it is.

@milosrs
Copy link

milosrs commented Apr 27, 2021

@bartenra Are you using Webpack 5 with storybook? We are currently having issues which are mentioned here:
#13893

I suspect that the culprit is legacy-peer-deps

@nakeman
Copy link

nakeman commented Jul 4, 2021

react 17.0.1
npm 7.5.2
Finally, npx --legacy-peer-deps sb init works for me.

works for me too.

@KarolMilewski
Copy link

npm:   8.11.0
node:  v16.15.1
vue:   ^3.2.38
vite: ^3.1.0

I have the same problem with Vue3/Vite with the storybook.

npm install
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: [email protected]
npm WARN Found: [email protected]
npm WARN node_modules/react
npm WARN   peerOptional react@"^16.8.0 || ^17.0.0 || ^18.0.0" from @storybook/[email protected]
npm WARN   node_modules/@storybook/addon-actions
npm WARN     dev @storybook/addon-actions@"^6.5.10" from the root project
npm WARN     1 more (@storybook/addon-essentials)
npm WARN   25 more (@storybook/addon-backgrounds, ...)
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer react@"^16.8.4 || ^17.0.0" from [email protected]
npm WARN node_modules/@storybook/addon-actions/node_modules/react-inspector
npm WARN   react-inspector@"^5.1.0" from @storybook/[email protected]
npm WARN   node_modules/@storybook/addon-actions
npm WARN 
npm WARN Conflicting peer dependency: [email protected]
npm WARN node_modules/react
npm WARN   peer react@"^16.8.4 || ^17.0.0" from [email protected]
npm WARN   node_modules/@storybook/addon-actions/node_modules/react-inspector
npm WARN     react-inspector@"^5.1.0" from @storybook/[email protected]
npm WARN     node_modules/@storybook/addon-actions
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @mdx-js/[email protected]
npm WARN Found: [email protected]
npm WARN node_modules/react
npm WARN   peerOptional react@"^16.8.0 || ^17.0.0 || ^18.0.0" from @storybook/[email protected]
npm WARN   node_modules/@storybook/addon-actions
npm WARN     dev @storybook/addon-actions@"^6.5.10" from the root project
npm WARN     1 more (@storybook/addon-essentials)
npm WARN   25 more (@storybook/addon-backgrounds, ...)
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer react@"^16.13.1 || ^17.0.0" from @mdx-js/[email protected]
npm WARN node_modules/@storybook/addon-docs/node_modules/@mdx-js/react
npm WARN   @mdx-js/react@"^1.6.22" from @storybook/[email protected]
npm WARN   node_modules/@storybook/addon-docs
npm WARN 
npm WARN Conflicting peer dependency: [email protected]
npm WARN node_modules/react
npm WARN   peer react@"^16.13.1 || ^17.0.0" from @mdx-js/[email protected]
npm WARN   node_modules/@storybook/addon-docs/node_modules/@mdx-js/react
npm WARN     @mdx-js/react@"^1.6.22" from @storybook/[email protected]
npm WARN     node_modules/@storybook/addon-docs

npx --legacy-peer-deps sb init - doesn't works for me

any new update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests