I have been facing a weird situations while creating a react app via command line on windows 10. I get the following error when I run create-react-app command. I am using node v8.9.4 and npm v6.4.0.
Creating a new React app in D:\react\myreactapp.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...
npm ERR! Unexpected end of JSON input while parsing near '...^1.0.1","line-numbers'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\USER\AppData\Roaming\npm-cache\_logs\2018-08-26T11_04_03_908Z-debug.log
Aborting installation.
npm install --save --save-exact --loglevel error react react-dom react-scripts has failed.
Deleting generated file... package.json
Deleting myreactapp / from D:\react
Done.
react-native infoand edit the question with the result.