When I went to create a new project with the command npx create-react-app nombre-app
, I got the following:
I did as it appears in the log and globally uninstalled create-react-app but I still get that warning when I try to create a project. According to the create-react-app documentation to update it, it updates the package every time a new project is created, but this didn't happen.
npm version: 8.6.1
node version: v16.13.1
Searching the create-react-app repository issues I found a workaround with the command:
npx [email protected] app-name
npx create-react-app@latest app-name --use-npm
To fix the command
npx create-react-app
you have to manually clear the npx cache with:npx clear-npx-cache
and you can now use the default command.More on this here .