C:\Users\lg\Desktop> npm uninstall -g create-react-app up to date, audited 1 package in 216ms found 0 vulnerabilities C:\Users\lg\Desktop>npx clear-npx-cache Need to install the following packages: clear-npx-cache Ok to proceed? (y) y C:\Users\lg\Desktop>npx create-react-app@5.0.0 reduxapp Need to install the following packages: create-react-app@5.0.0 Ok to proceed? (y) y npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap. You are running `create-react-app` 4.0.3, which is behind the latest release (5.0.0). We no longer support global installation of Create React App. Please remove any global installs with one of the following commands: - npm uninstall -g create-react-app - yarn global remove create-react-app The latest instructions for creating a new app can be found here: https://create-react-app.dev/docs/getting-started/ C:\Users\lg\Desktop>npm i tar up to date, audited 153 packages in 1s 6 packages are looking for funding run `npm fund` for details 3 high severity vulnerabilities To address all issues (including breaking changes), run: npm audit fix --force Run `npm audit` for details. C:\Users\lg\Desktop>npx create-react-app@5.0.0 reduxapp You are running `create-react-app` 4.0.3, which is behind the latest release (5.0.0). We no longer support global installation of Create React App. Please remove any global installs with one of the following commands: - npm uninstall -g create-react-app - yarn global remove create-react-app The latest instructions for creating a new app can be found here: https://create-react-app.dev/docs/getting-started/Traté de resolverlo a través de Google, pero parece ocurrir un error y no se puede crear la carpeta.
Usé npx create-react-app@latest my-app. esto funcionó para mí
intente borrar npx-cache si recientemente ejecutó esto en una versión anterior.
npx clear-npx-cache npx install -g create-react-app react-appTambién lo que se puede hacer es entrar a la consola como administrador, ubicado en la carpeta del usuario, y poner este comando (en mi caso usé el de NPM)
npm desinstalar -g crear-reaccionar-aplicación
lo desinstalamos y luego lo reinstalo
npm install -g crear-reaccionar-aplicación
y listo, me funciono
Así que estos son los pasos que hice para que funcione:
npm uninstall -g create-react-app npx create-react-app@latest my-app-nameborrar el caché npx resolvió el problema para mí:
npx clear-npx-cache