安装Angular CLI时出现此错误
C:\Users\user>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:\Users\user\AppData\Roaming\npm-cache\_logs\2017-12-10T15_06_38_9
53Z-debug.log
答案 0 :(得分:1)
运行以下命令。它对我有用。
npm cache clean --force
然后安装CLI。
npm install -g @angular/cli