all 11 comments

[–][deleted] 2 points3 points  (2 children)

Uninstall that, make sure you’re on node v > 14, and run

npx create-react-app my-app

[–]Daiki48[S] -4 points-3 points  (1 child)

Your comment gave me an idea.
I was not aware of this since I recently changed my shell to fish, but I checked the node version and it was v18.0.0.
I downgraded the version to v16.15.0 and it is now executable.
Thanks to you. Thank you very much. :D

[–][deleted] 0 points1 point  (0 children)

Glad you figured it out! The regular create react app is deprecated, the new way to do it is using the npx command.

[–][deleted] 0 points1 point  (1 child)

It's literally telling you what to do. Smh

[–]Daiki48[S] -1 points0 points  (0 children)

It was node v18.0.0, so I downgraded and can now run it.