我是靠谱客的博主 谨慎信封,这篇文章主要介绍ElasticSearch学习35_Loading "Gruntfile.js" tasks...ERROR,现在分享给大家,希望可以做个参考。

再ES5.0以上的版本中,安装head插件比较麻烦,中途遇到这个报错:

C:ELKelasticsearch-5.6.2head>grunt server
Loading "Gruntfile.js" tasks...ERROR
>> SyntaxError: Invalid or unexpected token
Warning: Task "server" not found. Use --force to continue.


Aborted due to warnings.

因为对Gruntfile.js文件进行过修改,修改内容如下:

connect: {
        server: {
                options: {
                        hostname: '*',
                        port: 9100,
                        base: '.',
                        keepalive: true
                }
        }
}

hostname: '*',是新加的,故去查看它是否出问题,尤其是中英文符号,结果发现果然有错误,解决后重新启动,正常。


最后

以上就是谨慎信封最近收集整理的关于ElasticSearch学习35_Loading "Gruntfile.js" tasks...ERROR的全部内容,更多相关ElasticSearch学习35_Loading内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(54)

评论列表共有 0 条评论

立即
投稿
返回
顶部