在Windows 11上使用WSL运行create-react-app命令时出现错误,

7dl7o3gd  于 4个月前  发布在  React
关注(0)|答案(1)|浏览(52)

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.

rfbsl7qr

rfbsl7qr1#

在使用WSL/WSL2时,请确保使用Linux子系统而不是Windows子系统,这样大多数功能都可以开箱即用,例如热刷新。尝试在Linux子系统中创建一个新项目。

相关问题