
Julián Mauricio Sánchez Cediel
PreguntaHola, alguien me puede ayudar? he intentado, pero me sale esto:
npx create-react-app test
The directory test contains files that could conflict:
node_modules/
package-lock.json
package.json
public/
src/
Either try using a new directory name, or remove the files listed above.
julians@LAPTOP-U23LCGRI:~$ sudo npx create-react-app test
Need to install the following packages:
create-react-app
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.
sh: 1: create-react-app: Permission denied
npm notice
npm notice New patch version of npm available! 8.1.0 -> 8.1.4
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.1.4
npm notice Run npm install -g npm@8.1.4 to update!
npm notice
no sé como arreglarlo, he leído muchos comentarios, pero no doy. muchas gracias por su ayuda

Silvina Fernanda Acosta
Hola! Creo que primero deberás eliminar Nodejs de Ubuntu, la instalación anterior esta causando conflictos entre los archivos, ejecuta el comando: sudo apt-get purge nodejs
Luego te recomiendo instalar Node.js en el Subsistema de Windows para Linux (WSL2) siguiendo las instrucciones de la documentación ofical de Microsoft: https://docs.microsoft.com/es-es/windows/dev-environment/javascript/nodejs-on-wsl
Yo lo instale siguiendo la guía y me funciona correctamente. Espero que puedas solucionar el problema e instalarlo. Saludos!!!