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
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.
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")
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