Unexpected end of JSON input while parsing near '...-commonjs":"9.1.0","r' code example
Example: 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