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
I solved this problem by deleting .yarnrc
file from C:\Users\yourUserName\
I faced the same issue when using npx
and was able to resolve this with the following steps:
$ npm i @yarn@latest
If the issue still persist you can use yarn command instead : $ yarn create react-app learnredux
yarn create
is available in Yarn 0.25+
updating to latest stable version of yarn and removing yarn cache folder in the AppData folder has solved my issue C:\Users\test\AppData\Local\Yarn
npm cache clean --force
The above command didn't solved your problem then try the below one.
npm init -y
npx create-react-app your-app-name
I accidentally hid the .yarnrc
file and that caused the problem.
I also resolved my issue by installing the latest version of node from
https://nodejs.org/en/download/
And then i run below command
npm install -g create-react-app
in the terminal Followed by "create-react-app " or "create-react-app ." if you are already in the folder.