接上篇(01),这是bug篇…
error log:
15337 verbose pkgid phantomjs-prebuilt@2.1.16
15338 verbose cwd /export/softwares/elasticsearch-head
15339 verbose Linux 2.6.32-696.el6.x86_64
15340 verbose argv "/usr/local/node-v8.1.0/bin/node" "/usr/local/bin/npm" "install"
15341 verbose node v8.1.0
15342 verbose npm v5.0.3
15343 error code ELIFECYCLE
15344 error errno 1
15345 error phantomjs-prebuilt@2.1.16 install: `node install.js`
15345 error Exit status 1
15346 error Failed at the phantomjs-prebuilt@2.1.16 install script.
15346 error This is probably not a problem with npm. There is likely additional logging output above.
15347 verbose exit [ 1, true ]
看网上的解决方案有,试了一下:
npm install phantomjs-prebuilt@2.1.16 --ignore-scripts
这是好了还是没好?我也不知道,于是决定接着npm install试试。。。
总之不报那个错了,我暂且假装它好了,接着往下安装。
请看下篇。。。
elasticsearch-head组件安装(02)
这里还是为bug预留着。。。
经测试,发现好像没有编译成功。。。
最后换了个好的网络重新下载了一份安装包,重新编译,发现编译成功。。。
多么激动人心的事情啊,
看来之前报错,很有可能是因为网络不好。
暂时就这么认为吧,如果你也报了同样的错,建议换个网络试试。
以后明白了真正原因再回来续写这篇。