Create React App error

After installing the npm create-react-app
The lesson is from this codecademy lesson

create-react-app first-app

Creating a new React app in C:\Users\Ricsson Ngo\Documents\Projects\React\first-app.

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 ‘…MLWw==",“shasum”:"ef7’

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Ricsson Ngo\AppData\Roaming\npm-cache_logs\2019-08-22T03_21_10_006Z-debug.log

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

Deleting generated file… package.json
Deleting first-app/ from C:\Users\Ricsson Ngo\Documents\Projects\React

Hello :slight_smile:

Looks like there was a problem during the download process.

Please run command npm cache clean --force and try again.


Dude. It works! Thanks! :laughing:


You’re very welcome :slight_smile:

1 Like