Create-React-App: ESlint error while deployment on local machine
it happens because there is a dependency installed at a parent level which has different version. In your case it's /Users/abz/node_modules/eslint
. Just run this command from root
rm -rf node_modules/eslint
and this should solve your problem.
following Anuj shah & SHAHBAZ replies:
rm -rf node_modules/eslint
npm install -g npm@latest
or just do npm i -S fsevents
resolved this issue.
but i have to do the above steps again and again whenever i install another package. this is so frustrating...
does anyone have a better solution for this?