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

后端 未结 16 1319
一生所求
一生所求 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:32

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

    Update node modules to version 13.12.0 that works for me

    https://nodejs.org/es/download/current/

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

    removing .npmrc from C:\Users\you\.npmrc can also solve the problem.

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

    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/

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