Jekyll installation problems

I’m new to Jekyll and as I was installing it for the first time on Kali Linux, I got the following message:
jekyll new portfolio
Traceback (most recent call last):
10: from /home/enlil/gems/bin/jekyll:23:in <main>' 9: from /home/enlil/gems/bin/jekyll:23:in load’
8: from /var/lib/gems/2.7.0/gems/jekyll-4.2.0/exe/jekyll:11:in <top (required)>' 7: from /var/lib/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/plugin_manager.rb:52:in require_from_bundler’
6: from /var/lib/gems/2.7.0/gems/bundler-2.1.4/lib/bundler.rb:149:in setup' 5: from /var/lib/gems/2.7.0/gems/bundler-2.1.4/lib/bundler/runtime.rb:26:in setup’
4: from /var/lib/gems/2.7.0/gems/bundler-2.1.4/lib/bundler/runtime.rb:26:in map' 3: from /var/lib/gems/2.7.0/gems/bundler-2.1.4/lib/bundler/spec_set.rb:147:in each’
2: from /var/lib/gems/2.7.0/gems/bundler-2.1.4/lib/bundler/spec_set.rb:147:in each' 1: from /var/lib/gems/2.7.0/gems/bundler-2.1.4/lib/bundler/runtime.rb:31:in block in setup’
/var/lib/gems/2.7.0/gems/bundler-2.1.4/lib/bundler/runtime.rb:312:in check_for_activated_spec!': You have already activated eventmachine 1.3.0.dev.1, but your Gemfile requires eventmachine 1.2.7. Prepending bundle exec` to your command may solve this. (Gem::LoadError)

I tried reinstalling the bundle but to no avail. I would like to get some help on this issue. Why it ins’t installing?

Looks like there’s a Gemfile in the directory.
Change your directory to be up one level and try running jekyll new portfolio again:

cd ..
jekyll new portfolio
2 Likes

Thanks a lot! I will give it a try.