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

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



Solution 1:[1]

Try the following commands

npm config set legacy-peer-deps true

next

npx create-react-app my-app

above commands worked for me

Solution 2:[2]

You need to provide app name

npx create-react-app [app-name]

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Ved
Solution 2 yakkhasuraj