0
votes

While using the below command, I am getting few errors.

npx create-react-app my-app

The errors I am getting are

npm ERR! Unexpected end of JSON input while parsing near '...8olCMjOZDx5OzCM3r6Cqh'

npm ERR! A complete log of this run can be found in: npm ERR!
C:\Users\mechi\AppData\Roaming\npm-cache_logs\2020-02-26T18_53_12_343Z-debug.log

4

4 Answers

0
votes

Try with the next:

npm cache clean --force

regards,

0
votes

This is npm install error, try clearing the npm cache and install again.

npm cache clean --force

0
votes

First use npm cache clean --force then you can npx create-react-app my-app or npm install

0
votes

Try splitting it into two commands. Install create-react-app first, then create the app

npx  create-react-app
create-react-app my-app

Failing that

  1. update/uninstall yarn etc..
  2. update/uninstall create-react-app