Seun Abilawon
Seun Abilawon

Reputation: 1

npm error - Unexpected end of JSON input while parsing near. Why?

Anytime i run create-react-native-app 'Project-Name'. I get this error on my node package manager

Unexpected end of JSON input while parsing near

How can i fix this? I tried this over 10 times, cleared my cache and also updated my npm version Is there something i must install or do?

Upvotes: 0

Views: 2875

Answers (1)

Lucifer
Lucifer

Reputation: 678

Just once clear the cache with

npm cache clean --force

then try

npm i create-react-native-app

again, see if this works, coz it worked for me!

Upvotes: 1

Related Questions