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

Npm error while installing latest version (v6.0.0-rc.6) #394

Open
enoh-barbu opened this issue Jun 23, 2023 · 1 comment
Open

Npm error while installing latest version (v6.0.0-rc.6) #394

enoh-barbu opened this issue Jun 23, 2023 · 1 comment

Comments

@enoh-barbu
Copy link

enoh-barbu commented Jun 23, 2023

npm ERR! Found: [email protected]
npm ERR! node_modules/styled-components
npm ERR!   styled-components@"^6.0.0-rc.6" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer styled-components@">= 2" from [email protected]
npm ERR! node_modules/babel-plugin-styled-components
npm ERR!   dev babel-plugin-styled-components@"^2.1.4" from the root project
npm ERR!   peerOptional babel-plugin-styled-components@">= 2" from [email protected]
npm ERR!   node_modules/styled-components
npm ERR!     styled-components@"^6.0.0-rc.6" 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.

What I'm doing wrong? just tried to install the lastest version

@ycytt-rs
Copy link

from a fresh npm project:

npm i react [email protected] babel-plugin-styled-components
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/styled-components
npm ERR!   styled-components@"6.0.0-rc.6" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer styled-components@">= 2" from [email protected]
npm ERR! node_modules/babel-plugin-styled-components
npm ERR!   babel-plugin-styled-components@"*" from the root project
npm ERR!   peerOptional babel-plugin-styled-components@">= 2" from [email protected]
npm ERR!   node_modules/styled-components
npm ERR!     styled-components@"6.0.0-rc.6" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/styled-components
npm ERR!   peer styled-components@">= 2" from [email protected]
npm ERR!   node_modules/babel-plugin-styled-components
npm ERR!     babel-plugin-styled-components@"*" from the root project
npm ERR!     peerOptional babel-plugin-styled-components@">= 2" from [email protected]
npm ERR!     node_modules/styled-components
npm ERR!       styled-components@"6.0.0-rc.6" 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 guess we need to fix peerDependencies in package.json

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

No branches or pull requests

2 participants