已解决elasticsearch-head启动失败,报Failed at the elasticsearch-head@0.0.0 start script.

一、前言

我们在学习ES时,安装可视化的界面,elasticsearch-head启动时报错。我们只需要按照报错的提示一步步进行设置安装环境就好了,下面跟着小编一起解决吧!!

二、报错展示

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! elasticsearch-head@0.0.0 start: `grunt server`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the elasticsearch-head@0.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2022-01-10T02_51_13_341Z-debug.log

三、解决

报错信息提示说没有grunt环境,我们安装一下即可

1. 安装grunt

npm install grunt --save-dev

在这里插入图片描述
2. 重新启动

npm run start

在这里插入图片描述
3. 继续依次安装所需要的依赖

 npm install grunt-contrib-clean
 npm install grunt-contrib-concat
 npm install grunt-contrib-watch
 npm install grunt-contrib-connect
 npm install grunt-contrib-copy
 npm install grunt-contrib-jasmine

在这里插入图片描述
4. 重新启动

npm run start

在这里插入图片描述
5. 启动成功

localhost:9100

在这里插入图片描述

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

掉发的小王

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值