Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Information] Running Chalk on Windows #220

Open
ghost opened this issue Nov 6, 2021 · 3 comments
Open

[Information] Running Chalk on Windows #220

ghost opened this issue Nov 6, 2021 · 3 comments

Comments

@ghost
Copy link

ghost commented Nov 6, 2021

Hey for everyone having problems with Chalk on Windows.

First make sure you have Msys64 installed or use the one that comes with Ruby Installer with DevKit. I recommend using rubyinstaller-devkit-2.7.4-1. Ruby 3.0 might cause you issues when you running your npm run local or publish.

Next is to make sure you edit packages.json so it has "setup": "sh bin/setup" and "publish": "sh bin/deploy". Sh is needed so you can run your scripts via git bash environment. Also, when you first install Ruby, you might get 'bundler command not found'.

Make sure you use gem install bundler without "--conservative" in setup file. Last but not least, use gitbash terminal. Using powershell or cmd will lead you to some issues with "find" command during deployment and development.

image

That's it, after some days of research I can finally build my first blog. Thanks @nielsenramon !
If anyone ever stumble with some issues on Windows do not hesitate to ping me here.

Cheers.

@sgbaird
Copy link

sgbaird commented Apr 24, 2022

(parables) PS C:\Users\sterg\Documents\GitHub\sgbaird\parables> npm run local

> local
> bundle exec jekyll serve --drafts

C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/kramdown-1.17.0/lib/kramdown/parser/html.rb:10:in `require': cannot load such file -- rexml/parsers/baseparser (LoadError)
        from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/kramdown-1.17.0/lib/kramdown/parser/html.rb:10:in `<top (required)>'
        from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown/html.rb:10:in `require'
        from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown/html.rb:10:in `<top (required)>'
        from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown/paragraph.rb:14:in `require'
        from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown/paragraph.rb:14:in `<top (required)>'
        from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown.rb:345:in `require'
        from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown.rb:345:in `<class:Kramdown>'
        from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown.rb:60:in `<module:Parser>'
        from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown.rb:19:in `<module:Kramdown>'
        from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown.rb:17:in `<top (required)>'
        from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-3.8.6/lib/jekyll/converters/smartypants.rb:3:in `require'
        from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-3.8.6/lib/jekyll/converters/smartypants.rb:3:in `<top (required)>'
        from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-3.8.6/lib/jekyll.rb:13:in `require'
        from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-3.8.6/lib/jekyll.rb:13:in `block in require_all'
        from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-3.8.6/lib/jekyll.rb:12:in `each'
        from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-3.8.6/lib/jekyll.rb:12:in `require_all'
        from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-3.8.6/lib/jekyll.rb:194:in `<top (required)>'
        from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-3.8.6/exe/jekyll:8:in `require'
        from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-3.8.6/exe/jekyll:8:in `<top (required)>'
        from C:/Ruby31-x64/bin/jekyll:25:in `load'
        from C:/Ruby31-x64/bin/jekyll:25:in `<main>'

@ghost
Copy link
Author

ghost commented Apr 24, 2022

(parables) PS C:\Users\sterg\Documents\GitHub\sgbaird\parables> npm run local

> local
> bundle exec jekyll serve --drafts

C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/kramdown-1.17.0/lib/kramdown/parser/html.rb:10:in `require': cannot load such file -- rexml/parsers/baseparser (LoadError)
        from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/kramdown-1.17.0/lib/kramdown/parser/html.rb:10:in `<top (required)>'
        from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown/html.rb:10:in `require'
        from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown/html.rb:10:in `<top (required)>'
        from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown/paragraph.rb:14:in `require'
        from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown/paragraph.rb:14:in `<top (required)>'
        from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown.rb:345:in `require'
        from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown.rb:345:in `<class:Kramdown>'
        from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown.rb:60:in `<module:Parser>'
        from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown.rb:19:in `<module:Kramdown>'
        from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown.rb:17:in `<top (required)>'
        from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-3.8.6/lib/jekyll/converters/smartypants.rb:3:in `require'
        from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-3.8.6/lib/jekyll/converters/smartypants.rb:3:in `<top (required)>'
        from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-3.8.6/lib/jekyll.rb:13:in `require'
        from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-3.8.6/lib/jekyll.rb:13:in `block in require_all'
        from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-3.8.6/lib/jekyll.rb:12:in `each'
        from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-3.8.6/lib/jekyll.rb:12:in `require_all'
        from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-3.8.6/lib/jekyll.rb:194:in `<top (required)>'
        from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-3.8.6/exe/jekyll:8:in `require'
        from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-3.8.6/exe/jekyll:8:in `<top (required)>'
        from C:/Ruby31-x64/bin/jekyll:25:in `load'
        from C:/Ruby31-x64/bin/jekyll:25:in `<main>'

image

Looks like you have ruby 3.1 installed.

@sgbaird
Copy link

sgbaird commented Apr 25, 2022

Ah😅case in point I guess. Got a little carried away with exploring multiple options and somehow missed/forgot this. Thanks @wobes1 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant