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 command npm install -g create-react-app
which works fine but after that running npx create-react-app
still throws error.
1条答案
按热度按时间rfbsl7qr1#
在使用WSL/WSL2时,请确保使用Linux子系统而不是Windows子系统,这样大多数功能都可以开箱即用,例如热刷新。尝试在Linux子系统中创建一个新项目。