Home > Mobile >  Creating app in ReactJs does not work using npx create-react-app
Creating app in ReactJs does not work using npx create-react-app

Time:11-15

So I'm trying to learn reactJS by following the docs, I have already install node.js and npm but the problem is that when I run

npx create-react-app my-app

gives me this error enter image description here I don't what is going on, any Idea?

CodePudding user response:

I had the same issue, and this worked for me:

npm install -g npm@latest
npm install node
npm install -g yarn
yarn cache clean
npx create-react-app my-app

CodePudding user response:

The solution in my case was that I have active a antivirus, so I add in the exceptions that yarn is not a danger. enter image description here

  • Related