ES下载安装教程及出错解决方法

        Windows系统下载安装ES数据库教程:

        windows环境下elasticsearch安装教程(超详细) - hualess - 博客园 (cnblogs.com)

        在安装ES数据库的head插件完成后,使用npm run start或grunt server,启动head插件报下面错误:

        (1)grunt server报错如下:

        grunt-cli: The grunt command line interface (v1.4.3)

        Fatal error: Unable to find local grunt.

        If you're seeing this message, grunt hasn't been installed locally to
        your project. For more information about installing and configuring grunt,
        please see the Getting Started guide:

        https://gruntjs.com/getting-started

        (2)npm run start报错如下:

        npm ERR! code ENOENT

        npm ERR! syscall open

        npm ERR! path D:\Elasticsearch\head\elasticsearch-head-master/package.json

        npm ERR! errno -4058

        npm ERR! enoent ENOENT: no such file or directory, open 'D:\Elasticsearch\head\elasticsearch-head-master\package.json' npm ERR! enoent This is related to npm not being able to find a file.

        npm ERR! enoent

        npm ERR! A complete log of this run can be found in:

        npm ERR! C:\Users\dell\AppData\Local\npm-cache\_logs\2023-07-02T02_51_28_412Z-debug-0.log

        报错原因是:head安装包路径错误,应该将“elasticsearch-head-master.zip”直接解压所在“head”目录下,不要再解压所在head目录下文件夹内

猜你喜欢

转载自blog.csdn.net/qq_43704127/article/details/131498866