Getting an error when trying to install react using npx create-react-app

204 Views Asked by At

Getting an error when trying to install react using npx create-react-app.. Please help. node version = v16.13.2 npm version = 8.6.0 enter image description here

2

There are 2 best solutions below

0
On

Try the following commands

npm config set legacy-peer-deps true

next

npx create-react-app my-app

above commands worked for me

1
On

You need to provide app name

npx create-react-app [app-name]