出现错误:npm ERR! Unexpected end of JSON input while parsing near '...nt-webpack-plugin":"0'
解决方法:
Npm uses Cache for downloading new packages for you. You need to clear your npm cache. use following command to clean :
npm cache clean --force
then normally use your npm install command e.g.
npm install -g @angular/cli