npm ERR! Unexpected end of JSON input while parsing near '...","karma-mocha-report'

Appeared when installing the package:

npm ERR! Unexpected end of JSON input while parsing near '...","karma-mocha-report'

The solution used is

npm cache clean --force

Guess you like

Origin www.cnblogs.com/smart-girl/p/12742587.html