我在命令行中收到此错误,请帮助
C:\Users\admin>npm -v
6.9.0
C:\Users\admin>npm install -g @angular/cli
npm ERR! Unexpected end of JSON input while parsing near '...vkit/core":"8.0.4","r'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\admin\AppData\Roaming\npm-cache\_logs\2019-11-13T09_21_07_788Z-debug.log
C:\Users\admin>node -v
v10.16.3
C:\Users\admin>
最佳答案
运行
npm cache clean --force
然后运行
npm install -g @angular/cli
关于javascript - 安装 Angular CLI 时出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58833905/