npm Err! Unexpected end of JSON input while parsing near

You are trying to create a new angular, react, vue app, and you end up with an error message saying:

npm ERR! Unexpected end of JSON input while parsing near

There's a high chance that your npm cache been damaged.

Try:

npm cache clean --force

If you are a windows user, try deleting all files in this folder:

C:\Users{{your-username}}\AppData\Roaming\npm-cache

Then...

npm cache verify

If that doesn't work, try updating to the lastest (understand the risks)

npm i npm@latest -g

I hope this helps!

Computer Science is evolving so fast... I'm eternally a student. Here're some of my notes.

![]( https://res.cloudinary.com/practicaldev/image/fetch/s--JmAotzi2--/c_fill ,f_auto,fl_progressive,h_180,q_auto,w_180/https://dev-to-uploads.s3.amazonaws.com/uploads/user/profile_image/166531/e0f639ce-f366-48f8-9cc7-47df8e66b903.gif)

posted @ 2020-05-24 22:22  PrimerPlus  阅读(364)  评论(0)    收藏  举报