sudo gem install jekyll bundler Successfully installed jekyll-3.4.3 Parsing documentation for jekyll-3.4. (Gem::FilePermissionError) You don't have write permissions for the /var/lib/gems/2.3.0 directory. If that doesn’t help or you are using an older template, please try installing webrick globally using gem install webrick or adding it to your project Gemfile using bundle add webrick in the project directory. Install bundler with gem install bundler Install gems with bundle install Run Jekyll with bundle exec jekyll serve -watch Begin hacking for your. gem install jekyll bundler ERROR: While executing gem. First, the CB template “Gemfile” includes webrick, so make sure you are using bundle exec jekyll s. gem install bundler -user-install This will install Bundler into your home directory. The theme should be available and running at localhost:4000. If you cannot elevate your privileges or do not want to globally install Bundler, you can use the -user-install option.
Then you can start running the theme using: bundle exec jekyll serve. A Gemfile.lock will be created to track the version of the installed gems.
On Windows it may appear as if nothing is happening for a very very long time, since the terminal does not provide a progress bar, be patient!ĭebugging Note: if you have Ruby version 3.0+ and Jekyll version 4.2.0 or less, when using Jekyll you may encounter an error in your terminal including “cannot load such file – webrick (LoadError)”. Everything necessary for the theme will be installed (mainly jekyll and its dependencies for Type-on-Strap). This process will take awhile as Gem installs all the dependencies and builds extensions.
Because Jekyll is a complex Gem with many dependencies, they recommend using Bundler to keep everything in working order. Bundler is a Ruby utility to manage dependencies on per project basis. This will install the Gems “Jekyll” and Bundler.