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

后端 未结 15 1095
渐次进展
渐次进展 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.

提交回复
热议问题