1

Tried to install create-react-app several times but nothing worked. It gives some error like Unexpected end of JSON input while parsing...

re-installed node but still the same error. enter image description here

3
  • had you solved this problem, Please I am suffering Commented Jul 7, 2019 at 14:17
  • Yes i have , just clean the cache. Commented Jul 7, 2019 at 14:56
  • then accept that answer which solved your problem, This help others to know what solved the problem Commented Jul 11, 2019 at 20:08

2 Answers 2

3

are you opening cmd with administrator privilege,

If not then, please open it with administrator privilege

if that not solve then,try to clear cache

npm cache clean  

or force clean it

 npm cache clean --force
Sign up to request clarification or add additional context in comments.

Comments

1

try clearing your npm cache, worked for me

npm cache clean --force 

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.