If you’re looking to create a company, documentation, personal website or blog, Jekyll is a popular static site generator that can help you get started. In this tutorial, we’ll walk you through the steps to install Jekyll on your computer.
Prerequisites
Before you get started, you’ll need the following prerequisites:
- A text editor (such as Atom, Visual Studio Code, or Sublime Text)
- A terminal (such as Terminal on macOS or Git Bash on Windows)
- Ruby version 2.5 or higher
Step 1: Install Ruby
The first step to installing Jekyll is to ensure you have Ruby installed on your computer. To check if you already have Ruby installed, open your terminal and run the following command:
ruby -v
If Ruby is not installed, follow the instructions on the official Jekyll Website to download and install it . Check the instructions specifically for Windows, macOS, Ubuntu, and other Linux distributions.
Once you install Ruby, come back and continue with the rest of the tutorial.
Step 2: Install Jekyll
Once you have Ruby installed, you can install Jekyll by running the following command in your terminal:
gem install jekyll bundler
This command installs Jekyll and its dependencies, as well as Bundler, which is a package manager that helps you manage your Jekyll dependencies.
Step 3: Verify Your Installation
To ensure that Jekyll has been successfully installed, you can run the following command in your terminal:
jekyll -v
This command should output the version of Jekyll that you have installed on your computer.
Conclusion
Congratulations, you’ve successfully installed Jekyll on your computer! Now you’re ready to start building your own website or blog using Jekyll. In the next tutorial, we’ll show you how to create a new Jekyll site and customize its appearance.