I did try the following steps that has been advised but in vain. I even tried uninstalling nodejs and reinstalling and many other suggestions in StackOverflow and github. Could someone help me out here.
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:c:\users\aksha\node_modules\babel-eslint (version: 7.2.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.that will permanently disable this message but you might encounter other issues.to fix the dependency tree, try following the steps below in the exact order:
delete package-lock.json (not package.json!) and/or yarn.lock in your project folder.
delete node_modules in your project folder.
remove "babel-eslint" from dependencies and/or devdependencies in the package.json file in your project folder.
run npm install or yarn, depending on the package manager you use.in most cases, this should be enough to fix the problem.if this has not helped, there are a few other things you can try:
if you used npm, install yarn (http://yarnpkg.com/) and repeat the above steps with it instead.this may help because npm has known issues with package hoisting which may get resolved in future versions.
check if c:\users\aksha\node_modules\babel-eslint is outside your project directory.for example, you might have accidentally installed something in your home folder.
try running npm ls babel-eslint in your project folder.this will tell you which other package (apart from the expected react-scripts) installed babel-eslint.
if nothing else helps, add skip_preflight_check=true to an .env file in your project.that would permanently disable this preflight check in case you want to proceed anyway.p.s. we know this message is long but please read the steps above :-)
we hope you find them helpful!npm err! code elifecyclenpm err! errno 1npm err! [email protected] start: react-scripts start
npm err! exit status 1npm err!npm err! failed at the [email protected] start script.npm err! this is probably not a problem with npm. there is likely additional logging output above.npm err! a complete log of this run can be found in:npm err! c:\users\aksha.desktop-8t3go8b\appdata\roaming\npm-cache_logs\2021-02-03t05_26_59_598z-debug.log
Try adding '.env' file in root directory of your project and add this to file -
SKIP_PREFLIGHT_CHECK=true
This might help.