I have setup Ubuntu 20.04 LTS version on Windows 11 system using WSL2 feature.
Every time I am trying to run the command npx create-react-app, it is throwing error as shown in the screenshot.
I also tried installing the package globally using this command npm install -g create-react-app which works fine but after that running npx create-react-app still throws error.
When your using WSL/WSL2 make sure to use the Linux subsystem instead of Windows subsystem, so most of the features works out of the box like hot-refresh.
Try creating a new project inside the Linux subsystem.
Describe the bug
I have setup Ubuntu 20.04 LTS version on Windows 11 system using WSL2 feature. Every time I am trying to run the command
npx create-react-app
, it is throwing error as shown in the screenshot. I also tried installing the package globally using this commandnpm install -g create-react-app
which works fine but after that runningnpx create-react-app
still throws error.