Create React App not installing, showing an error and aborting installation

后端 未结 16 1320
一生所求
一生所求 2021-01-04 13:12

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

相关标签:
16条回答
  • 2021-01-04 13:25

    I solved this problem by deleting .yarnrc file from C:\Users\yourUserName\

    0 讨论(0)
  • 2021-01-04 13:25

    I faced the same issue when using npx and was able to resolve this with the following steps:

    • Upgraded to latest yarn version: $ npm i @yarn@latest
    • Remove node_modules folder
    • Remove yarn.lock (if it exists).
    • Remove .npmrc from your user folder.

    If the issue still persist you can use yarn command instead : $ yarn create react-app learnredux

    yarn create is available in Yarn 0.25+

    0 讨论(0)
  • 2021-01-04 13:26

    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

    0 讨论(0)
  • 2021-01-04 13:29

    I had a same problem then i tried the below Command and it fixed my issue

    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
    
    0 讨论(0)
  • 2021-01-04 13:31

    I accidentally hid the .yarnrc file and that caused the problem.

    0 讨论(0)
  • 2021-01-04 13:32

    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.

    0 讨论(0)
提交回复
热议问题