I can't install react using npx create-react-app?

后端 未结 15 996
渐次进展
渐次进展 2020-12-29 06:15

I am trying to use npx create-react app but i have errors that is shown below:

npm ERR! Unexpected end of Json input w         


        
相关标签:
15条回答
  • 2020-12-29 07:10

    I tried everything and nothing worked.

    I then restarted my laptop, and when I tried npm init followed with npm install create-react-app I got an Avast potential harmful file alert, but it was ok and I confirmed it. That create-react-app attempt failed, but when I tried it again it worked.

    It's possible that a firewall or such is blocking node from carrying out a function, hence why it's throwing a callback() never called error.

    0 讨论(0)
  • 2020-12-29 07:11

    when i run the commond npx crate-react-app i face this error what should i do ? please

    : not foundram Files/nodejs/npm: 3: /mnt/c/Program Files/nodejs/npm: : not foundram Files/nodejs/npm: 5: /mnt/c/Program Files/nodejs/npm: /mnt/c/Program Files/nodejs/npm: 6: /mnt/c/Program Files/nodejs/npm: Syntax error: word unexpected (expecting "in")

    0 讨论(0)
  • 2020-12-29 07:15
    npm uninstall -g create-react-app
    npx create-react-app my-app
    

    You don't need to install the create-react-app package globally. 'npx' is already installing with the latest version.

    Quick start

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