You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've encountered the same error just a few minutes ago, try installing the package using the following command:
npm install react-devicon --legacy-peer-deps
It seems that this dependency error is cause by React17, as mentioned here due to the large number of modules that haven't specifically added React v17 as a peerDependency, it's now commonplace to encounter the unable to resolve dependency tree error when running npm installs within a v17 React application.
Installation fails with React v17 with dependency error.
npm ERR! Found: [email protected] npm ERR! node_modules/react npm ERR! react@"^17.0.2" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@">= 15.3.0 < 16 || 16.x" from [email protected] npm ERR! node_modules/react-devicon npm ERR! react-devicon@"*" from the root project
The text was updated successfully, but these errors were encountered: