0
votes

enter image description here(base) mukund@mukund-Inspiron-15-3567:~$ create-react-app todo-app

Creating a new React app in /home/mukund/todo-app.

Installing packages. This might take a couple of minutes. Installing react, react-dom, and react-scripts with cra-template...

npm ERR! Unexpected end of JSON input while parsing near '...{"babel-core":"^6.0.0'

npm ERR! A complete log of this run can be found in: npm ERR! /home/mukund/.npm/_logs/2020-05-10T14_41_17_724Z-debug.log

Aborting installation. npm install --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.

Deleting generated file... package.json Deleting todo-app/ from /home/mukund Done.

1
try opening the log file..and share more details description herePriyesh Diukar
Are you running the latest version of create-react-app?Barry Michael Doyle
yes i have the latest versionMukund
I have added a screenshot of the log fileMukund

1 Answers

2
votes

Creating an app like the recommended way by the core React team at reactjs.org should solve the problem.

Do this:

npx create-react-app todo-app

Also run the following to clear you npm cache in case that is causing the issues:

npm cache clean --force