Problem with react

I’m trying to practice, but

npx create-react-app@5 pizza-menu produces


but it should create the pizza-menu folder
doesnt
image
show I have node

Not my area of expertise, but if you read the errors it states you need a version of node ^20.17.0 and above to run the npm install -g npm@11.1.0 command.

Your version is 20.14.0. Personally I would install a newer version of node, the current version available is 22.14.0. I would guess this comes with an updated npm as well.

This doesn’t answer your question, but be aware that CRA has been officially discontinued.

You would likely avoid much pain if you go with a more modern setup, e.g. Vite (as described here).

2 Likes