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 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.