出错代码:
npm ERR! Unexpected end of input at 1:252542
npm ERR! },"1.7.0":{"name":"karma","version":"1.7.0","dependencies":{"bluebird
npm ERR! ^
npm ERR! A complete log of this run can be found in:
npm ERR! /home/es/.npm/_logs/2018-10-15T11_25_30_147Z-debug.log
效果展示:如下
解决办法:
删除已经存在的elasticsearch-head 重新解压(tar -xvf elasticsearch-head)
进入cd elasticsearch-head
执行npm cache clean --force
此时正常启动就可以了