create-react-app : npm ERR! Unexpected end of JSON input while parsing near '....'
If npx create-react-app my-app
command not working and throws an error like: npm ERR! Unexpected end of JSON input while parsing near '...zAJNgZjZUkJ08ybAxwNnR'
, Just check your npm version:
npm --version npm -v
and if required update it:
npm install -g npm@latest
It will definitely work.