Error creating application with create-react-app

0
I installed the create-react-app all right, but when you tried to create a project using the hello-world create-react-app command it gives the following error:

C:\Users\j.santos.da.silva\Desktop\curso-angular>create-react-app hello-world

Creating a new React app in C:\Users\j.santos.da.silva\Desktop\curso-angular\hello-world.

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 '...verse":"7.0.0-alpha.1'

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\j.santos.da.silva\AppData\Roaming\npm-cache\_logs18-06-12T15_34_51_173Z-debug.log

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

Deleting generated file... package.json
Deleting hello-world / from C:\Users\j.santos.da.silva\Desktop\curso-angular
Done.
    
asked by anonymous 12.06.2018 / 17:39

1 answer

1

Try again, it seems to be just a download problem, if it does not work, try installing one dependency at a time to figure out what is wrong.

It tries to clear the cache of npm, sometimes you can have the same error repeatedly because the file that causes the problem is cached.

npm cache clean --force

    
12.06.2018 / 17:54