Hello everyone
When i run
bundle exec jekyll serve
I got this error
bundler: failed to load command: jekyll (/usr/bin/jekyll)
LoadError: cannot load such file -- colorator
/home/behrooz/.gem/ruby/2.4.0/gems/jekyll-3.5.2/lib/jekyll.rb:32:in `require'
/home/behrooz/.gem/ruby/2.4.0/gems/jekyll-3.5.2/lib/jekyll.rb:32:in `<top (required)>'
/home/behrooz/.gem/ruby/2.4.0/gems/jekyll-3.5.2/exe/jekyll:6:in `require'
/home/behrooz/.gem/ruby/2.4.0/gems/jekyll-3.5.2/exe/jekyll:6:in `<top (required)>'
/usr/bin/jekyll:22:in `load'
/usr/bin/jekyll:22:in `<top (required)>'
How can i fix it?
What’s your Gemfile
look like?
Have you tried running bundle update
?
my Gemfile is
source 'http://rubygems.org'
gem 'github-pages'
gem 'rouge'
gem 'jekyll'
gem 'jekyll-mentions'
gem 'jekyll-feed'
gem 'jekyll-sitemap'
gem 'jekyll-gist'
and bundle update
[behrooz@Lenovo-G500 behroozramezani.github.io]$ bundle update
Fetching gem metadata from http://rubygems.org/..........
Fetching version metadata from http://rubygems.org/..
Fetching dependency metadata from http://rubygems.org/.
Resolving dependencies........
Using i18n 0.8.6 (was 0.8.4)
Using minitest 5.10.3 (was 5.10.2)
Using thread_safe 0.3.6
Using public_suffix 2.0.5
Using bundler 1.15.4
Using coffee-script-source 1.11.1 (was 1.12.2)
Using execjs 2.7.0
Using colorator 1.1.0
Using ffi 1.9.18
Using multipart-post 2.0.0
Using forwardable-extended 2.6.0
Using gemoji 3.0.0
Using net-dns 0.8.0
Using rb-fsevent 0.10.2 (was 0.9.8)
Using kramdown 1.13.2
Using liquid 4.0.0 (was 3.0.6)
Using mercenary 0.3.6
Using rouge 1.11.1
Using safe_yaml 1.0.4
Using mini_portile2 2.3.0 (was 2.2.0)
Using jekyll-paginate 1.1.0
Using jekyll-swiss 0.4.0
Using unicode-display_width 1.3.0 (was 1.2.1)
Using tzinfo 1.2.3
Using addressable 2.5.2 (was 2.5.1)
Using coffee-script 2.4.1
Using ethon 0.10.1
Using rb-inotify 0.9.10 (was 0.9.8)
Using faraday 0.13.1 (was 0.12.1)
Using pathutil 0.14.0
Using nokogiri 1.8.1 (was 1.8.0)
Using terminal-table 1.8.0
Using activesupport 4.2.9 (was 4.2.8)
Using jekyll-coffeescript 1.0.2 (was 1.0.1)
Using typhoeus 0.8.0
Using sass-listen 4.0.0
Using listen 3.0.6
Using sawyer 0.8.1
Using html-pipeline 2.7.1 (was 2.6.0)
Using sass 3.5.1 (was 3.4.24)
Using jekyll-watch 1.5.0
Using octokit 4.7.0
Using jekyll-sass-converter 1.5.0
Using github-pages-health-check 1.3.5 (was 1.3.3)
Using jekyll-gist 1.4.1 (was 1.4.0)
Using jekyll 3.5.2 (was 3.4.3)
Using jekyll-avatar 0.5.0 (was 0.4.2)
Using jekyll-default-layout 0.1.4
Using jekyll-feed 0.9.2
Using jekyll-github-metadata 2.9.3 (was 2.3.1)
Using jekyll-mentions 1.2.0
Using jekyll-optional-front-matter 0.2.0 (was 0.1.2)
Using jekyll-readme-index 0.1.0
Using jekyll-redirect-from 0.12.1
Using jekyll-relative-links 0.5.0 (was 0.4.0)
Using jekyll-seo-tag 2.3.0 (was 2.2.3)
Using jekyll-sitemap 1.1.1 (was 1.0.0)
Using jekyll-titles-from-headings 0.4.0 (was 0.1.5)
Using jemoji 0.8.1 (was 0.8.0)
Using minima 2.1.1
Using jekyll-theme-architect 0.1.0 (was 0.0.4)
Using jekyll-theme-cayman 0.1.0 (was 0.0.4)
Using jekyll-theme-dinky 0.1.0 (was 0.0.4)
Using jekyll-theme-hacker 0.1.0 (was 0.0.4)
Using jekyll-theme-leap-day 0.1.0 (was 0.0.4)
Using jekyll-theme-merlot 0.1.0 (was 0.0.4)
Using jekyll-theme-midnight 0.1.0 (was 0.0.4)
Using jekyll-theme-minimal 0.1.0 (was 0.0.4)
Using jekyll-theme-modernist 0.1.0 (was 0.0.4)
Using jekyll-theme-primer 0.5.2 (was 0.2.1)
Using jekyll-theme-slate 0.1.0 (was 0.0.4)
Using jekyll-theme-tactile 0.1.0 (was 0.0.4)
Using jekyll-theme-time-machine 0.1.0 (was 0.0.4)
Using github-pages 163 (was 139)
Bundle updated!
Maybe try gem uninstall colorator
and remove any and all versions of it. Then install everything again.
bundle install
bundle exec jekyll build
Seems like something is up with colorator according to the error above. I’m not familiar with that gem or what it’s used for.
Thanks it work. my issue is solve