"babel-jest": "^26.6.0" error when building

I am getting the following error when trying to build the frontend application.
I tryed the fix suggestions but didn’t work. Anybody else experienced the same issue?
I know almost nothing about React, I am a .NET Backend developer

Hi the error is basically saying create-react-app expects babel-jest 26.6.0 in order to run as it is dependant on it but can’t find it.

try to install the package directly with below, hopefully that should resolve the error:

npm install [email protected]

If the issue still persists after running the above command then might need to flush the cache with below which will remove the dependencies, flush the cache and re-install them.

rm -rf node_modules package-lock.json
npm cache clean --force
npm install