Cannot install plugin environment

Hello,
I'm trying to install the plugin envrionment for my logstash forwarders that are running logstash 5.0.
Here is the out put i get:
Validating logstash-filter-environment
Installing logstash-filter-environment
Plugin version conflict, aborting
ERROR: Installation Aborted, message: Bundler could not find compatible versions for gem "logstash-core-plugin-api":
In snapshot (Gemfile.lock):
logstash-core-plugin-api (= 2.1.16)

In Gemfile:
logstash-devutils (~> 1.1) java depends on
logstash-core-plugin-api (~> 2.0) java

logstash-input-s3 (>= 0) java depends on
  logstash-mixin-aws (>= 0) java depends on
    logstash-core-plugin-api (<= 2.99, >= 1.60) java

logstash-filter-environment (>= 0) java depends on
  logstash-core-plugin-api (~> 1.0) java

logstash-core-plugin-api (>= 0) java

Running bundle update will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
Bundler could not find compatible versions for gem "logstash-core":
In snapshot (Gemfile.lock):
logstash-core (= 5.0.0)

In Gemfile:
logstash-core-plugin-api (>= 0) java depends on
logstash-core (= 5.0.0) java

logstash-filter-environment (>= 0) java depends on
  logstash-core (< 2.0.0, >= 1.4.0) java

logstash-core (>= 0) java

Running bundle update will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
Bundler could not find compatible versions for gem "logstash":
In Gemfile:
logstash-filter-environment (>= 0) java depends on
logstash (< 2.0.0, >= 1.4.0) java
Could not find gem 'logstash (< 2.0.0, >= 1.4.0) java', which is required by gem 'logstash-filter-environment (>= 0) java', in any of the sources.

How can it be handled. Or, am i missing something?

Thanks

Nobody experienced this issue???

Having the same issue. +1 When I install the ruby bundler and run bundle update I now get: Could not locate Gemfile