HomeTutorsContact
NodeJS
(Solved) Unexpected end of JSON input while parsing near '...'?
Gulshan Saini
August 20, 2020
1 min

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

Error

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


Tags

#react#npm
Previous Article
How to create isolated Python virtual environment?

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