etc / / 2021. 3. 7. 03:12

Error npm install styled-components

 

npm ERR! code ERESOLVE

npm ERR! ERESOLVE unable to resolve dependency tree

npm ERR! 

npm ERR! While resolving: reapp@0.0.1

npm ERR! Found: react@16.13.1

npm ERR! node_modules/react

npm ERR!   react@"16.13.1" from the root project

npm ERR!   peer react@">= 16.8.0" from styled-components@5.2.1

npm ERR!   node_modules/styled-components

npm ERR!     styled-components@"5.2.1" from the root project

npm ERR! 

npm ERR! Could not resolve dependency:

npm ERR! peer react@"17.0.1" from react-dom@17.0.1

npm ERR! node_modules/react-dom

npm ERR!   peer react-dom@">= 16.8.0" from styled-components@5.2.1

npm ERR!   node_modules/styled-components

npm ERR!     styled-components@"5.2.1" 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/apple/.npm/eresolve-report.txt for a full report.

 

npm ERR! A complete log of this run can be found in:

npm ERR!     /Users/apple/.npm/_logs/2021-03-03T14_19_40_207Z-debug.log

 

 


solution

 

 

 

Download Recommended For Most Users

 

 

and retry 

$npm install styled-components

 

  • 네이버 블로그 공유
  • 네이버 밴드 공유
  • 페이스북 공유
  • 카카오스토리 공유