我在安装Angular CLI
时遇到了此错误C:Usersuser>npm install -g @angular/cli
npm ERR! Unexpected end of JSON input while parsing near '...use-db","version":"
1.'
npm ERR! A complete log of this run can be found in:
npm ERR! C:UsersuserAppDataRoamingnpm-cache_logs2017-12-10T15_06_38_9
53Z-debug.log
运行以下命令。它对我有用。
npm cache clean --force
然后安装CLI。
npm install -g @angular/cli