安装elasticsearch-head失败

来源:8-1 业务与功能分析

慕粉1473579783

2017-12-26

老师,我在阿里云centos 7.2上安装elasticsearch-head,执行npm install后,报错:

signal: null,

  cmd: 'tar jxf /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2' } Error: Command failed: tar jxf /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2

tar (child): bzip2: Cannot exec: No such file or directory


写回答

1回答

瓦力老师

2017-12-26

看起来是环境依赖问题,建议尝试先单独安装PhantomJS依赖,看一下能否成功安装,如果不行,切换镜像到国内的cnpm,或者尝试重装node环境。祝亲学习愉快^_^

1
1
慕粉1473579783
谢谢老师,用npm install phantomjs-prebuilt@2.1.16 --ignore-scripts解决了
2017-12-26
共1条回复

BAT大牛亲授 基于ElasticSearch的搜房网实战

ES+MySQL+Kafka,打造强力站内搜索

898 学习 · 285 问题

查看课程