Jekyll Installation Error on Windows 10

Error log: https://pastebin.com/raw/SfeEs5wC

Windows 10
ruby 2.6.3p62 (2019-04-16 revision 67580) [x64-mingw32]
Bundler version 2.1.2
Gem 3.1.2

Traceback (most recent call last):

    13: from C:/Ruby26-x64/bin/jekyll:23:in `<main>'
    12: from C:/Ruby26-x64/bin/jekyll:23:in `load'
    11: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/jekyll-4.0.0/exe/jekyll:8:in `<top (required)>'
    10: from C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
     9: from C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
     8: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/jekyll-4.0.0/lib/jekyll.rb:200:in `<top (required)>'
     7: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/jekyll-4.0.0/lib/jekyll.rb:12:in `require_all'
     6: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/jekyll-4.0.0/lib/jekyll.rb:12:in `each'
     5: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/jekyll-4.0.0/lib/jekyll.rb:13:in `block in require_all'
     4: from C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:92:in `require'
     3: from C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:92:in `require'
     2: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/jekyll-4.0.0/lib/jekyll/converters/smartypants.rb:3:in `<top (required)>'
     1: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/jekyll-4.0.0/lib/jekyll/converters/smartypants.rb:4:in `<module:Kramdown>'

C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/jekyll-4.0.0/lib/jekyll/converters/smartypants.rb:5:in `module:Parser’: uninitialized constant Kramdown::Parser::Kramdown (NameError)

can you get the ruby version? (to make sure ruby is running ok)

how did you install jekyll?

what is the output of gem list?

I use win 10 and use the regular command prompt or powershell and both work no problem.

can you get the ruby version? (to make sure ruby is running ok)

Yes. This is what I get on version check.
ruby 2.6.3p62 (2019-04-16 revision 67580) [x64-mingw32]
Bundler version 2.1.2
Gem 3.1.2

how did you install jekyll?

gem install jekyll bundler

what is the output of gem list ?

C:\Users\XYZ\Desktop>gem list

*** LOCAL GEMS ***

addressable (2.7.0)
bigdecimal (default: 1.4.1)
bundler (2.1.2)
cmath (default: 1.0.0)
colorator (1.1.0)
concurrent-ruby (1.1.5)
csv (default: 3.0.9)
date (default: 2.0.0)
dbm (default: 1.0.0)
did_you_mean (1.3.0)
e2mmap (default: 0.1.0)
em-websocket (0.5.1)
etc (default: 1.0.1)
eventmachine (1.2.7 x64-mingw32)
fcntl (default: 1.0.0)
ffi (1.11.3 x64-mingw32)
fiddle (default: 1.0.0)
fileutils (default: 1.1.0)
forwardable (default: 1.2.0)
forwardable-extended (2.6.0)
gdbm (default: 2.0.0)
http_parser.rb (0.6.0)
i18n (1.7.0)
io-console (default: 0.4.7)
ipaddr (default: 1.2.2)
irb (default: 1.0.0)
jekyll (4.0.0)
jekyll-sass-converter (2.0.1)
jekyll-watch (2.2.1)
json (default: 2.1.0)
kramdown (2.1.0)
kramdown-parser-gfm (1.1.0)
liquid (4.0.3)
listen (3.2.1)
logger (default: 1.3.0)
matrix (default: 0.1.0)
mercenary (0.3.6)
minitest (5.11.3)
mutex_m (default: 0.1.0)
net-telnet (0.2.0)
openssl (default: 2.1.2)
ostruct (default: 0.1.0)
pathutil (0.16.2)
power_assert (1.1.3)
prime (default: 0.1.0)
psych (default: 3.1.0)
public_suffix (4.0.2)
rake (12.3.2)
rb-fsevent (0.10.3)
rb-inotify (0.10.1)
rdoc (default: 6.1.0)
rexml (default: 3.1.9)
rouge (3.14.0)
rss (default: 0.2.7)
rubygems-update (3.1.2)
safe_yaml (1.0.5)
sassc (2.2.1 x64-mingw32)
scanf (default: 1.0.0)
sdbm (default: 1.0.0)
shell (default: 0.7)
stringio (default: 0.0.2)
strscan (default: 1.0.0)
sync (default: 0.5.0)
terminal-table (1.8.0)
test-unit (3.2.9)
thwait (default: 0.1.0)
tracer (default: 0.1.0)
unicode-display_width (1.6.0)
webrick (default: 1.4.2)
xmlrpc (0.3.0)
zlib (default: 1.0.0)

from C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:92:in `require' 2: 
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/jekyll-4.0.0/lib/jekyll/converters/smartypants.rb:3:in `<top (required)>'

I’m not sure about this, but it kind of looks like you have ruby installed in 2 different places? The site_ruby looks like a duplicate possibly? so you could have gems in 2 different places and they are conflicting or not working together.

If you google the main error - uninitialized constant Kramdown::Parser::Kramdown (NameError) you will see a couple other posts on here about this, they look similar.

Not sure what the solution is, maybe uninstall ruby and reinstall it?

I’m not sure about this, but it kind of looks like you have ruby installed in 2 different places? The site_ruby looks like a duplicate possibly? so you could have gems in 2 different places and they are conflicting or not working together.

Maybe this is true, but I don’t recall installing it more than one time. Found here that site_ruby and vendor_ruby existing together might break ruby gems.

If you google the main error - uninitialized constant Kramdown::Parser::Kramdown (NameError) you will see a couple other posts on here about this, they look similar.

I did that, but couldn’t found any solution. Also, most of those issues weren’t produced right after the installation.

Not sure what the solution is, maybe uninstall ruby and reinstall it?

Yes, will do that now. Maybe it could be of some help. Thanks !

Update: Re-installation of Ruby solved it.
Got the:

C:\Users\XYZ>jekyll -v
jekyll 4.0.0