Installing Jekyll on Windows
-
Open CMD with Admin privilege.
-
Install chocolatey:
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1 && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"Alternatively you can run following command(s) from an administrative PowerShell v3+ prompt:
-
Ensure
Get-ExecutionPolicyis notRestrictedand minimum set toRemoteSigned. If it’sRestrictedthen you need to change it first by running:Set-ExecutionPolicy RemoteSigned -
Install chocolatey:
iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex -
Don’t forget to restore the policy if you changed it before by executing:
Set-ExecutionPolicy <your-old-policy>
-
-
Reopen CMD. Then install Ruby using chocolatey:
choco install ruby -y -
Install jekyll, and bundler - package manager that will aid you in installing all the Jekyll dependencies:
gem install jekyll bundler -
Congrats! Now you can use
jekyllcommand on your Windows.