Reputation: 1
I've just created a new React app using Create React App. When I went to install Matrial UI, I received the following error message:
Other packages are able to be installed just fine. Is this an issue with React 17? Should I rollback to an earier version? I use React and Material UI daily at work, but this was on an app created back in June.
EDIT: I've attempted to delete the node modules folder and re-install, but no luck.
Upvotes: 0
Views: 5134
Reputation: 9
I got the same problem when I install it with NPM. I solved this issues with yarn instead of npm.
Upvotes: 0
Reputation: 1
So it turns out the issue was caused by the fact that I was using the 'latest' version of Node, that being 15.0.1. I installed the LTS version, currently 12.19.0, and Material UI now installs and works correctly.
Upvotes: 0
Reputation: 11
I think you just misspelled the command to install the package. You put: npm i npm install @material-ui/core You should insert: npm i @material-ui/core or npm install @material-ui/core
Upvotes: 1