react : NPM install fails react : NPM install fails reactjs reactjs

react : NPM install fails


TLDR

There is some dependency error with npm, so how about clear project

Answer

First of all, How about clear node_modules and package-lock.json

rm -rf ./node_modules package-lock.json

and retry install with

npm install or npm i

and what I want to say is clear package-lock.json and node_modules. If you'd like to get more information about deleting here is the link


What version of the babel (and it's sub-modules) do you use? Show rows from your package.json file (related to babel).Your issue possibly could be resolved by updating all babel-related modules