【发布时间】:2015-11-24 09:36:41
【问题描述】:
我的配置 弹性搜索 -2.0.0 Kibana -4.2.1 节点版本 - v5.0.0 npm 版本 - v3.4.1
开始了我的 elasticsearch 和 kibana 并按照 Kibana Plugin Yeoman Generator - Getting Started 中给出的步骤进行操作 使用 yo kibana-plugin 创建了一个新的插件目录 并开始使用 npm start
root@root:~/my-new-plugin$ npm start
它显示以下错误
npm ERR! Linux 3.13.0-68-generic
npm ERR! argv "/usr/local/bin/node" "/usr/bin/npm" "start"
npm ERR! node v5.0.0
npm ERR! npm v3.4.1
npm ERR! missing script: start
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request:
npm ERR! /home/guidanz-kavi/my-new-plugin/npm-debug.log
发现 package.json 中缺少启动脚本。 于是开始使用下面的命令
root@root:~/my-new-plugin$ node index.js
但它正在退出。
请建议我开始使用该插件。
【问题讨论】:
-
生成的代码似乎有问题。您应该在 kibana 插件生成器存储库中打开错误报告。
-
感谢您的回复。在错误报告中,我发现了同样的错误并找到了启动应用程序的正确方法。
标签: node.js elasticsearch yeoman-generator kibana-4