一切福田,不離方寸,從心而覓,感無不通。

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

Alt Text

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

Try:


 

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


 

Then…


 

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


 

I hope this helps!

 

from:https://dev.to/rishiabee/npm-err-unexpected-end-of-json-input-while-parsing-near-743