(Solved) Unexpected end of JSON input while parsing near '...'?

By Gulshan Saini
Published in NodeJS
August 20, 2020
1 min read

3 ways to solve below error while creating a new React app. This issue basically happens due to corrupt npm cache


npm ERR! Unexpected end of JSON input while parsing near ‘…IQm+fFFJjZGEbtrZiQZGt’

Solution 1 - Delete npm cache

Clean npm cache by running npm cache clean --force

Solution 2 - remove .npm directory

Go to home directory for your operating system and delete .npm folder

Solution 3 - Use Yarn instead

If above two solutions do not work for you, create react app using Yarn

After, fixing the problematic npm cache try running again npx create-react-app client


Previous Article
How to create isolated Python virtual environment?

Gulshan Saini

Fullstack Developer

Subscribe to our newsletter!

We'll send you the best of our blog just once a month. We promise.

Related Posts

How to list the installed node modules and their dependencies?

August 15, 2020
1 min
© 2020, All Rights Reserved.

Quick Links

Advertise with usContact Us

Social Media