DEV Community

Amapola-Negra
Amapola-Negra

Posted on

Problems with create react app

Hi everyone. I used create react app some months ago. I used the comand "npx create-react-app my-app" in a new folder in the desktop. Now I'm trying to run again the same command in another folder and it gives an error and npm cancel the installation.

Image description

I run the command "npm uninstall -g create-react-app" but it doesn't work.

I have node v16.13.2 and npm 8.3.1

What can I do? Thanks in advance.

Regards :)

Top comments (3)

Collapse
 
link2twenty profile image
Andrew Bone

If you google the error the first link has the answer.

npx create-react-app@5 <PROJECT_NAME>
Enter fullscreen mode Exit fullscreen mode

Setting your project up like this take the problem away.

Collapse
 
ivan_jrmc profile image
Ivan Jeremic

Try Vite.js instead of CRA

Collapse
 
abhishekps profile image
abhishek • Edited

For this issue you have to install the npx globally, currently may be you installed the npx local only