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

Errors during npm install with latest CoreUI React Admin Template #294

Closed
mark-friedman opened this issue Mar 18, 2021 · 2 comments
Closed

Comments

@mark-friedman
Copy link

I just cloned the CoreUI React Admin Template (v3.2). When I run npm install I am getting the following warnings plus errors:

$ npm install
npm WARN ERESOLVE overriding peer dependency
npm WARN Found: [email protected]
npm WARN node_modules/react
npm WARN   react@"^17.0.1" from the root project
npm WARN   9 more (@coreui/icons-react, @coreui/react, react-dom, ...)
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer react@"0.13.x || 0.14.x || ^15.0.0-0 || ^16.0.0-0" from [email protected]
npm WARN node_modules/enzyme-adapter-utils
npm WARN   enzyme-adapter-utils@"^1.13.1" from @wojtekmaj/[email protected]
npm WARN   node_modules/@wojtekmaj/enzyme-adapter-react-17
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!   react@"^17.0.1" from the root project
npm ERR!   peer react@"^17.0.1" from @coreui/[email protected]
npm ERR!   node_modules/@coreui/icons-react
npm ERR!     @coreui/icons-react@"^1.0.2" from the root project
npm ERR!     @coreui/icons-react@"^1.1.0" from @coreui/[email protected]
npm ERR!     node_modules/@coreui/react
npm ERR!       @coreui/react@"^3.4.0" from the root project
npm ERR!   8 more (@coreui/react, react-dom, react-router-dom, ...)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^0.14 || ^15.0.0 || ^16.0.0-alpha" from [email protected]
npm ERR! node_modules/enzyme-adapter-utils/node_modules/airbnb-prop-types
npm ERR!   airbnb-prop-types@"^2.16.0" from [email protected]
npm ERR!   node_modules/enzyme-adapter-utils
npm ERR!     enzyme-adapter-utils@"^1.13.1" from @wojtekmaj/[email protected]
npm ERR!     node_modules/@wojtekmaj/enzyme-adapter-react-17
npm ERR!       @wojtekmaj/enzyme-adapter-react-17@"^0.3.2" 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.

Any idea what's going on and how to fix it?

Thanks in advance.

-Mark

@xidedix
Copy link
Member

xidedix commented Mar 22, 2021

The error occurs with npm v7.
As a workaround you can run npm install with --force, or --legacy-peer-deps flag

@clinton-mwachia
Copy link

I was installing @coreui/react and @coreui/coreui in my react project bootstrapped using create react app ( using react-dom and react version 18.0.0). I had a similar conflict but resolved it by adding --force and it worked.

npm i @coreui/react @coreui/coreui --force

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

3 participants