Install Jekyll on Windows with Chocolatey

Install Jekyll on Windows with Chocolatey

set up Jekyll locally with Chocolatey on Windows

In this installation guide we’ll use Windows 10 & package manager Chocolatey. These instructions should also work for older versions of Windows.

Install Chocolatey

First, ensure that you are using an administrative shell. For example, using Command Prompt (cmd): Find cmd in All Apps -> Windows System -> Command Prompt. Right click on the icon, select “More” then “Run as administrator”.

Next, we’re going to install Chocolatey with powershell.exe:

NOTE from Chocolatey: Please inspect https://chocolatey.org/install.ps1 prior to running any of these scripts to ensure safety. We already know it’s safe, but you should verify the security and contents of *any* script from the internet you are not familiar with. All of these scripts download a remote PowerShell script and execute it on your machine. We take security very seriously. Learn more about our security protocols.

With PowerShell, you must ensure Get-ExecutionPolicy is not Restricted. We suggest using Bypass to bypass the policy to get things installed or AllSigned for quite a bit more security. To do that, run Get-ExecutionPolicy. If it returns Restricted, then run Set-ExecutionPolicy AllSigned or Set-ExecutionPolicy Bypass -Scope Process. The following installation script will handle the Bypass automatically.

Now run the following command in cmd:

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

Wait a few seconds for the command to complete. If you don’t see any errors, you are ready to use Chocolatey! Type choco or choco -? now, or see Getting Started for usage instructions.

But it’s recommended to close cmd and re-open it again to make Chocolatey available, remember to run the cmd as an administrator.

Install Ruby using Chocolatey

Then we’ll install Ruby.

choco install ruby -y

Close cmd and open it once again to make Ruby available, remember to run the cmd as an administrator.

Install Jekyll using Ruby Gem

Once we have Ruby installed, we can install Jekyll with Ruby Gem:

gem install jekyll

After that, we can test Jekyll is working by checking the version of Jekyll.

jekyll -v

Yep! Now let’s start blogging with Jekyll…

Ads by Google

Installation via Bash on Windows 10

If you are using Windows 10 version 1607 or later, another option to run Jekyll is by installing the Windows Subsystem for Linux.

See detailed installation guid with Bash on Windows here: https://jekyllrb.com/docs/installation/windows/#installation-via-bash-on-windows-10.

In this fashion, you’re totally switched to a Linux environment for Jekyll development, have fun with that.

THE END
Ads by Google

林宏

Frank Lin

Hey, there! This is Frank Lin (@flinhong), one of the 1.41 billion . This 'inDev. Journal' site holds the exploration of my quirky thoughts and random adventures through life. Hope you enjoy reading and perusing my posts.

YOU MAY ALSO LIKE

Setup an IKEv2 server with strongSwan

Tutorials

2020.01.09

Setup an IKEv2 server with strongSwan

IKEv2, or Internet Key Exchange v2, is a protocol that allows for direct IPSec tunnelling between networks. It is developed by Microsoft and Cisco (primarily) for mobile users, and introduced as an updated version of IKEv1 in 2005. The IKEv2 MOBIKE (Mobility and Multihoming) protocol allows the client to main secure connection despite network switches, such as when leaving a WiFi area for a mobile data area. IKEv2 works on most platforms, and natively supported on some platforms (OS X 10.11+, iOS 9.1+, and Windows 10) with no additional applications necessary.

Hands on IBM Cloud Functions with CLI

Tools

2020.10.20

Hands on IBM Cloud Functions with CLI

IBM Cloud CLI allows complete management of the Cloud Functions system. You can use the Cloud Functions CLI plugin-in to manage your code snippets in actions, create triggers, and rules to enable your actions to respond to events, and bundle actions into packages.