Getting error when try to install kibana plugin

I’m trying to install “” package for kibana.

I tried to install with sudo :

sudo bin/kibana-plugin install

But I’m getting this error:

Kibana should not be run as root.  Use --allow-root to continue.

Then I try to install without sudo :

bin/kibana-plugin install

Now, I’m getting this error:

Plugin installation was unsuccessful due to error "ENOENT: no such file or directory, mkdir"

I also try this two command :

  1. su -s /bin/bash -c 'bin/kibana-plugin install'
  2. service kibana start 'bin/kibana-plugin install'

But still installation is unsuccessful.

What is the solution?