Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jekyll version questions

If I run jekyll -v in terminal, I got this:

/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin19/rbconfig.rb:229: warning: Insecure world writable dir /usr/local/opt in PATH, mode 040777
jekyll 4.1.0

But if I run gem list jekyll, it says I have another version of jekyll:

*** LOCAL GEMS ***

jekyll (2.4.0)
jekyll-coffeescript (1.2.2)
jekyll-gist (1.5.0)
jekyll-paginate (1.1.0)
jekyll-sass-converter (1.5.2)
jekyll-watch (1.5.1)

Does it mean I have two different versions of Jekyll installed? and how can I choose to use the old version 2.4.0? and is it possible to uninstall the 4.1.0?

Thanks

like image 388
cg2017 Avatar asked Feb 10 '26 16:02

cg2017


1 Answers

I am answering both of your questions:

  1. How can I choose to use the old version 2.4.0?

    So, it is actually done through Gemfile in the project. Just mention gem 'jekyll', '2.4.0' in your Gemfile.

  2. Is it possible to uninstall the 4.1.0?

    Yes. Run gem uninstall Jekyll --version 4.1.0

like image 53
brg Avatar answered Feb 18 '26 09:02

brg