Matthew Malan
Matthew Malan

Reputation: 33

Cant install Material UI to new react app

Im new to the dev world and I'm trying to start a new react app using material UI as the component library but I keep getting the following error:

Error image

And my files look like this:

Folder screenshot

Can anyone help in layman's terms?

TIA

Upvotes: 3

Views: 5493

Answers (2)

I just did this:

-> npx create-react-app travel-advisor (<- that's the name of my app)
-> npm install --save [email protected] [email protected] 

Upvotes: 0

Zein
Zein

Reputation: 577

npm install --save --legacy-peer-deps @material-ui/core

this Material UI version does not support React v18 yet I suggest going for a lower version

Upvotes: 5

Related Questions