I Reinstalled Node.js and Yarn. Now I am getting this error.
My environment information is:
Node: v8.12.0
NPM: 6.4.1
Yarn: 1.10.1
This might help for Linux operating system
sudo npm install -g npm@latest
npm install node
npm init
npm install -g yarn
yarn cache clean
npx create-react-app my-app
Update node modules to version 13.12.0 that works for me
https://nodejs.org/es/download/current/
removing .npmrc
from C:\Users\you\.npmrc
can also solve the problem.
I had the same error on my Mac.
I just re-downloaded the installer from the Node.js website. This should reinstall all the dependencies and make sure that all paths are valid.
https://nodejs.org/en/download/