Working on Mac Os (Catalina)
- We need to use Ruby > 2.4 (By default Mac Os has 2.6x) ✅
- Execute:
gem install --user-install bundler jekyll
- Then based on your Ruby version set ruby to the path
ruby -v
- Replacing the X.X with the first two digits of your Ruby version.
echo 'export PATH="$HOME/.gem/ruby/X.X.0/bin:$PATH"' >> ~/.bash_profile
or
echo 'export PATH="$HOME/.gem/ruby/X.X.0/bin:$PATH"' >> ~/.zshrc
- Refresh your terminal
source .zshrc
or
source .bash_profile
Check the documentation: Jekyll on macOS
Documentation Quickstart
Documentation Command Line Usage
- use
jekyll b
to build statics