Angular/cli global installation cannot be uninstalled

6.x is used in the angular/cli project that accidentally installed 7.x. I want to uninstall and reinstall 6.x cli,
but use npm uninstall-g @ angular/cli to report an error

npm ERR! Unexpected end of JSON input while parsing near "....2","dependencies":{""

Sep.04,2021

. Does it feel like there is something wrong with the format in your package.json?


1. Overwrite 7.x cli in global installation 6.x,
2. Clean up some caches https://blog.csdn.net/qq_3837.

Menu