- #Gem install jekyll could not find valid gem how to#
- #Gem install jekyll could not find valid gem update#
- #Gem install jekyll could not find valid gem software#
Invalid date '': Document 'vendor/bundle/ruby/2.0.0/gems/jekyll-3.4.0/lib/site_template/_posts/' does not have a valid date in the YAML front matter.Ī quick search revealed two reasons and how to fix both… $ echo 'exclude:Īuto-regeneration: enabled for '/Users/yourname/gem/my-awesome-site' Source: /Users/yourname/gem/my-awesome-siteĭestination: /Users/yourname/gem/my-awesome-site/_site Let’s try to serve the just-installed site… $ bundle exec jekyll serveĬonfiguration file: /Users/yourname/gem/my-awesome-site/_config.yml The last command may take sometime to execute depending on the CPU and network speed. Let’s cancel the installation by pressing ctrl+c in the keyboard. But, easy to fix as mentioned in the output. Possibly, the first road-block in our installation. vendor/bundle/, or you can enter your passwordĪnd install the bundled gems to RubyGems using sudo. You can cancel this installation and run: Your user account isn't allowed to install to the system RubyGems. Running bundle install in /Users/yourname/gem/my-awesome-site. If it didn’t, please let me know the actual error in the comments, I will try to help you. If things go smoothly without an error, we can proceed to install Jekyll... $ gem install jekyll Now let’s try to install bundle that is a dependancy for Jekyll. This is where we can instruct gem to use ~/gem/bin to keep the executables. ~/.gemrc is the file parsed by gem for custom configurations. ~/.bash_profile( ~/.config/fish/config.fish in case of Fish shell) is the file that is used by the default bash shell in macOS to store and load the configuration settings for the terminal/s. $ echo 'set GEM_HOME ~/gem' > ~/.config/fish/config.fish $ echo 'gem: -user-install -n~/gem/bin -no-document' > ~/.gemrc $ echo 'export GEM_HOME=~/gem' > ~/.bash_profile So, if you prefer another path such as ~/.gem, feel free to change it accordingly…įor the default bash shell: $ mkdir -p ~/gem/bin
#Gem install jekyll could not find valid gem update#
Also, let’s have all the executables in ~/gem/bin and update the $PATH environment value. Let’s have a ~/gem directory to hold everything related to RubyGems. Also, installing locally, I can distinguish between the gems installed by MacOS and gems installed by me. Since, I use MacOS alone (how many of you share your laptop with others?), I don’t want to install anything globally. Installing them locally or installing them globally for all users. There are two ways to install most common packages that are requirements for Jekyll. But, when there is a way to install it without brew or any other third-party tool, we will have a clean system. The tutorials around the internet may usually contain how to install it using brew.
So, installing Jekyll should be straight-forward. MacOS Sierra already has it at version 2.0.0p648.
#Gem install jekyll could not find valid gem software#
Every other SSG software now includes a way to bring blog functionality in its core, though. Jekyll is one of the oldest static site generators and is the most famous SSG (short for Static Site Generator) of all. So, the following article (written in Feb 2017) is outdated and may not work now! Update (Oct 24, 2017): A new simpler way to install Jekyll using MacPorts is available.