Gem install jekyll bundler4/21/2023 ![]() Check that a new enough version of Ruby is installed to meet Jekyll’s system requirements: ruby -v Clone the static website repository you’re working on, and cd into that folder.Ģ. ![]() The version of Ruby included with Big Sur (currently 2.6.0) is recent enough good to go there.ģ. In the past, I’ve installed Ruby gems using sudo, as part of the system Ruby installation. Then, I added Bundler (and other gems) to my path file following the instructions here: echo 'export PATH="$HOME/.gem/ruby/2.6.0/bin:$PATH"' > ~/.zshrc That’s no longer recommended, so instead I did the following: gem install -user-install bundler jekyllĤ. Note that for newer versions of Ruby, you should change 2.6.0 above to match your installed version. Once Bundler was installed, I needed to use a similar approach to save bundle packages locally, rather than in a system-wide location.įrom within the website folder, I ran: bundle config set -local path 'vendor/bundle' If you’re using the Bash shell the syntax is slightly different.ĥ. ![]() Which saves packages to a “vendor” directory within the project folder, similar to Composer’s “vendor” folder or npm’s “node_modules” folder.ħ. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |