Open klezd opened 3 years ago
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.
I just had it now!
I'm also getting this error when trying to install react v18.2.2
In case this helps anyone, I had this issue as well. It turned out to be a problem with my local npm cache. Try this:
npm cache clean --force
Everything worked for me afterward.
npm cache
docs: https://docs.npmjs.com/cli/v7/commands/npm-cache
From the docs for npm cache clean
:
Delete all data out of the cache folder. Note that this is typically unnecessary, as npm's cache is self-healing and resistant to data corruption issues.
Well, sometimes it's necessary I guess. 🙂
Nope It's not working for me. I have tried following thing as well to clean up all cache stuff.
npm cache clean --force
npm config rm proxy
npm config rm https-proxy
npm cache verify
Still facing same issue. for reference adding ss.
You should also check node version supporting the react version
node -v
Describe the bug
Error when running with create-react-app.
I have tried on an exisiting project to install package @material-ui and received similiar result as above (Found react@undefined)
Did you try recovering your dependencies?
(Write your answer here.)
Which terms did you search for in User Guide?
(Write your answer here if relevant.)
Environment
Steps to reproduce
(Write your steps here:)
Expected behavior
Successfully created React App
Actual behavior