首页 文章

npm Json解析@ angular / cli安装的错误

提问于
浏览
1

我正在尝试安装角度6:
$ npm install -g @angular/cli@latest

我正在使用
node -v - v8.11.1
npm -v - 6.0.1
os Linux(Mint 18)我得到了:

npm ERR! Unexpected end of JSON input while parsing near '...um":"7e1bd7294bd522da'

Note: 当我'm using npm so I'已经尝试 npm cache verifynpm cache clean --force 时我仍然得到相同的结果

1 回答

  • 1

    这似乎与您的node / npm有关,而不是Angular CLI .

    只需从程序和功能中完全卸载Node.js并重新安装它,确保完全删除了Npm文件夹中的所有节点模块和npm缓存,而不是在其他地方

相关问题