0
点赞
收藏
分享

微信扫一扫

error path /root/elasticsearch-head/node_modules/phantomjs-prebuilt

在npm install 安装elasticsearch-head的过程中报错

git clone ​​https://github.com/mobz/elasticsearch-head.git​​

cd elasticsearch-head/

npm install

4147 error code 1
4148 error path /root/elasticsearch-head/node_modules/phantomjs-prebuilt
4149 error command failed
4150 error command sh -c node install.js
4151 error PhantomJS not found on PATH
4151 error Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-linux-x86_64.tar.bz2
4151 error Saving to /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
4151 error Receiving...
4152 error Error making request.
4152 error Error: socket hang up
4152 error     at connResetException (node:internal/errors:692:14)
4152 error     at TLSSocket.socketOnEnd (node:_http_client:478:23)
4152 error     at TLSSocket.emit (node:events:539:35)
4152 error     at endReadableNT (node:internal/streams/readable:1345:12)
4152 error     at processTicksAndRejections (node:internal/process/task_queues:83:21)
4152 error
4152 error Please report this full log at https://github.com/Medium/phantomjs
4153 verbose exit 1
4154 timing npm Completed in 177100ms
4155 verbose unfinished npm timer reify 1653980847467
4156 verbose unfinished npm timer reify:build 1653980901673
4157 verbose unfinished npm timer build 1653980901675
4158 verbose unfinished npm timer build:deps 1653980901676
4159 verbose unfinished npm timer build:run:install 1653980901734
4160 verbose unfinished npm timer build:run:install:node_modules/phantomjs-prebuilt 1653980901735
4161 verbose code 1
4162 error A complete log of this run can be found in:
4162 error     /root/.npm/_logs/2022-05-31T07_07_26_673Z-debug-0.log

发现是在安装依赖phantomjs-prebuilt 2.1.1版本的时候,报错;直接npm安装:

npm install phantomjs-prebuilt@2.1.1 --ignore-scripts

发现是没有这个版本

error path /root/elasticsearch-head/node_modules/phantomjs-prebuilt_elasticsearch

在github查找,也没找到对应的2.1.1版本,直接安装最新的2.1.14版本

npm install phantomjs-prebuilt@2.1.14 --ignore-scripts

举报

相关推荐

0 条评论