Failing to install craco

Viewed 1564
npm ERR! While resolving: frontend@0.1.0
npm ERR! Found: react-scripts@5.0.0
npm ERR! node_modules/react-scripts
npm ERR!   react-scripts@"^5.0.0" from the root project
npm ERR!   peer react-scripts@"^5.0.0" from craco-esbuild@0.5.0
npm ERR!   node_modules/craco-esbuild
npm ERR!     dev craco-esbuild@"*" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react-scripts@"^4.0.0" from @craco/craco@6.4.3
npm ERR! node_modules/@craco/craco
npm ERR!   dev @craco/craco@"6.4.3" from the root project
npm ERR!   peer @craco/craco@"^6.0.0" from craco-esbuild@0.5.0
npm ERR!   node_modules/craco-esbuild
npm ERR!     dev craco-esbuild@"*" from the root project

i dont get it i already have the dependency 5.0.0 in my project craco wants 4.0.0 but its saying it failed

1 Answers

The issue is a result of CRA 5 update - meaning that you're using react version 5.0.0 vs Craco requires react 4.0.0.

The Craco team is working on this issue - You may check this for further details

Craco Github: https://github.com/gsoft-inc/craco/issues/378

Related