Getting below errors while running npm start

There might be a problem with the project dependency tree.
It is likely not a bug in Create React App, but something you need to fix locally.

The react-scripts package provided by Create React App requires a dependency:

“babel-eslint”: “^10.1.0”

Don’t try to install it manually: your package manager does it automatically.
However, a different version of babel-eslint was detected higher up in the tree:

D:\node_modules\babel-eslint (version: 10.0.3)

Manually installing incompatible versions is known to cause hard-to-debug issues.

If you would prefer to ignore this check, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project.

can you refer below package.json file
{
“name”: “counter-app”,
“version”: “0.1.0”,
“private”: true,
“dependencies”: {
@testing-library/jest-dom”: “^5.16.5”,
@testing-library/react”: “^13.4.0”,
@testing-library/user-event”: “^13.5.0”,
“bootstrap”: “^4.6.2”,
“react”: “^18.2.0”,
“react-dom”: “^18.2.0”,
“react-scripts”: “^4.0.3”,
“web-vitals”: “^2.1.4”
},
“scripts”: {
“start”: “react-scripts start”,
“build”: “react-scripts build”,
“test”: “react-scripts test”,
“eject”: “react-scripts eject”
},
“eslintConfig”: {
“extends”: [
“react-app”,
“react-app/jest”
]
},
“browserslist”: {
“production”: [
“>0.2%”,
“not dead”,
“not op_mini all”
],
“development”: [
“last 1 chrome version”,
“last 1 firefox version”,
“last 1 safari version”
]
}
}

based on your message,
use this:

step 1: create a file: .env (notice the dot in front of ‘env’) in your project root. i.e., /counter-app/

step 2: add this line in there:

SKIP_PREFLIGHT_CHECK=true

Your project file structure should look like this:

/counter-app
.env

save and re-run the command ‘npm start’ and let us know if it heps.

FYI: local issues are hard to debug using online help. You will need to troubleshoot the issue by yourself. Copy the error message and search in the Google. You should be able to view similar problems and solutions.

Good Luck