The react-scripts package provided by Create React App requires a dependency:
[0]
[0] "eslint": "^7.11.0"
[0]
[0] Don't try to install it manually: your package manager does it automatically.
[0] However, a different version of eslint was detected higher up in the tree:
[0]
[0] C:UsersAsustodolistnode_moduleseslint (version: 5.6.0)
[0]
[0] Manually installing incompatible versions is known to cause hard-to-debug issues.
[0]
[0] If you would prefer to ignore this check, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project.
[0] That will permanently disable this message but you might encounter other issues.
[0]
[0] To fix the dependency tree, try following the steps below in the exact order:
[0]
[0] 1. Delete package-lock.json (not package.json!) and/or yarn.lock in your project folder.
[0] 2. Delete node_modules in your project folder.
[0] 3. Remove "eslint" from dependencies and/or devDependencies in the package.json file in your project folder.
[0] 4. Run npm install or yarn, depending on the package manager you use.
[0]
[0] In most cases, this should be enough to fix the problem.
[0] If this has not helped, there are a few other things you can try:
[0]
[0] 5. If you used npm, install yarn (``http://yarnpkg.com/``) and repeat the above steps with it instead.
[0] This may help because npm has known issues with package hoisting which may get resolved in future versions.
[0]
[0] 6. Check if C:UsersAsustodolistnode_moduleseslint is outside your project directory.
[0] For example, you might have accidentally installed something in your home folder.
[0]
[0] 7. Try running npm ls eslint in your project folder.
[0] This will tell you which other package (apart from the expected react-scripts) installed eslint.
[0]
[0] If nothing else helps, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project.
[0] That would permanently disable this preflight check in case you want to proceed anyway.
[0]
[0] P.S. We know this message is long but please read the steps above :-) We hope you find them helpful!
[0]
[0] npm run start exited with code 1
Please give me some suggestion.