create-react-app : npm ERR! Unexpected end of JSON input while parsing near '....' create-react-app : npm ERR! Unexpected end of JSON input while parsing near '....' reactjs reactjs

create-react-app : npm ERR! Unexpected end of JSON input while parsing near '....'


Its happened because of slow internet . So wait till ur internet connection is normal. Or install all dependencies one by one.


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.


First check for npm version by running the following command npm --version. if you have an npm version then try instally npx globally with the help of npm i -g npx. if npm and ngx are installed properlly then this will work .