verbose stack SyntaxError: Unexpected end of JSON input while parsing near '...NFk0\nHFnTJIOxsXIGtYy code example
Example 1: SyntaxError: Unexpected end of JSON input while parsing near '...version":"2.0.6","devD' cli
npm cache clean --force
then run npm i
Example 2: Unexpected end of JSON input while parsing near
Open Windows Powershell as admin
npm cache clean --force
solved the problem for me
Alternative : You can use yarn instead
npm install -g yarn