elastic / sense

A JSON aware developer's interface to Elasticsearch. Comes with handy machinery such as syntax highlighting, autocomplete, formatting and code folding.
Other
381 stars 134 forks source link

Installation of sense fails with "Cannot find module 'joi'" #93

Closed mrueegg closed 8 years ago

mrueegg commented 8 years ago

Hi,

When I attempt to install sense through

$ kibana plugin --install elastic/sense

it fails with the message

Installing sense Attempting to extract from https://download.elastic.co/elastic/sense/sense-latest.tar.gz Downloading 318236 bytes.................... Extraction complete Optimizing and caching browser bundles... Plugin installation was unsuccessful due to error "Cannot find module 'joi'"

Note that I have installed joi globally with

$ npm install -g joi

but this doesn't help. Any ideas? Thanks in advance.

spalger commented 8 years ago

How did you install Kibana?

mrueegg commented 8 years ago

With homebrew (brew install kibana):

$ brew info kibana kibana: stable 4.3.1 (bottled), HEAD Analytics and search dashboard for Elasticsearch https://www.elastic.co/products/kibana /usr/local/Cellar/kibana/4.1.1 (3,672 files, 23.3M) Poured from bottle /usr/local/Cellar/kibana/4.3.1 (13,686 files, 106.6M) * Poured from bottle From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/kibana.rb ==> Caveats Plugins: /usr/local/var/kibana/installedPlugins/ Config: /usr/local/etc/kibana/

spalger commented 8 years ago

Hmm, my guess is that since the homebrew installer puts different parts in different places it breaks the plugin installer. We don't support installing from brew though, but installing kibana is as easy as extracting an archive and running a command: https://www.elastic.co/downloads/kibana

mrueegg commented 8 years ago

Thanks, the version from the homepage worked like a charm.

AndersonZacharyT commented 8 years ago

After installing Kibana through the Homepage version, I'm still having the module 'joi' not be found when I try to install Sense. I'm using the command:

kibana plugin --install elastic/sense
spalger commented 8 years ago

@AndersonZacharyT can you verify that you're using the right kibana install?

which kibana
AndersonZacharyT commented 8 years ago

Thanks for getting back to me. It's Kibana version 4.3.1

spalger commented 8 years ago

I'm actually concerned that you might still be (accidentally) running the brew installed version of kibana. Did you uninstall it with brew uninstall kibana?