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

Vue 3 Installation issue #14084

Closed
blowsie opened this issue Mar 1, 2021 · 2 comments
Closed

Vue 3 Installation issue #14084

blowsie opened this issue Mar 1, 2021 · 2 comments
Labels
duplicate yarn / npm Yarn / npm acting weird

Comments

@blowsie
Copy link

blowsie commented Mar 1, 2021

Describe the bug
Failed to install dependencies when using npx sb@next init on a empty vue3 project

To Reproduce
Follow steps on blog
https://storybook.js.org/blog/storybook-vue3/

npx sb@next init

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

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



up to date, audited 87 packages in 948ms

9 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

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.2.0-beta.3" from the root project
npm ERR!     @storybook/addon-actions@"6.2.0-beta.4" from @storybook/[email protected]
npm ERR!     node_modules/@storybook/addon-essentials
npm ERR!       dev @storybook/addon-essentials@"^6.2.0-beta.3" 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.2.0-beta.3" from the root project
npm ERR!   7 more (@storybook/addon-links, @storybook/addons, react-dom, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.4" from [email protected]
npm ERR! node_modules/@storybook/addon-actions/node_modules/react-inspector
npm ERR!   react-inspector@"^5.1.0" from @storybook/[email protected]
npm ERR!   node_modules/@storybook/addon-actions
npm ERR!     dev @storybook/addon-actions@"^6.2.0-beta.3" from the root project
npm ERR!     1 more (@storybook/addon-essentials)
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 C:\Users\sblowes\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\sblowes\AppData\Local\npm-cache\_logs\2021-03-01T09_30_51_764Z-debug.log

Expected behavior
n/a

Screenshots
n/a

Code snippets
n/a

System

Environment Info:

  System:
    OS: Windows 10 10.0.18363
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  Binaries:
    Node: 14.15.3 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 7.5.6 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 88.0.4324.190
    Edge: Spartan (44.18362.449.0)

Additional context
Project is a blank project generated with npm init @vitejs/app

@shilman shilman added duplicate yarn / npm Yarn / npm acting weird labels Mar 1, 2021
@shilman
Copy link
Member

shilman commented Mar 1, 2021

closing as dupe to #12983

@shilman shilman closed this as completed Mar 1, 2021
@blowsie
Copy link
Author

blowsie commented Mar 1, 2021

Thanks i fixed it by using nvm to downgrade node to do the initial install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate yarn / npm Yarn / npm acting weird
Projects
None yet
Development

No branches or pull requests

2 participants