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:
1 |
npm cache clean --force |
If you are a windows
user, try deleting all files in this folder:
1 |
C:\Users{{your-username}}\AppData\Roaming\npm-cache |
Then…
1 |
npm cache verify |
If that doesn’t work, try updating to the lastest (understand the risks)
1 |
npm i npm@latest -g |
I hope this helps!
from:https://dev.to/rishiabee/npm-err-unexpected-end-of-json-input-while-parsing-near-743