已解决elasticsearch-head启动失败,报Failed at the [email protected] start script.

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

解决elasticsearch-head启动失败,报Failed at the [email protected] start script. 一、前言

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

二、报错展示
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `grunt server`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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:UsersAdministratorAppDataRoamingnpm-cache_logs2022-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

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/5701956.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-17

发表评论

登录后才能评论

评论列表(0条)

保存