so I’m struggling running Jekyll I’m a newb). I had it working the other day but after I tried hosting it in Github pages it stopped working and I keep getting -bash: jekyll: command not found
I’ve tried deleting all gems, reinstalling everything and so on. I installed Jekyll using Homebrew. If I do gem env
I get the following and I think the problem must be with the shell pat and/or gem path.
RubyGems Environment:
- RUBYGEMS VERSION: 3.2.3
- RUBY VERSION: 3.0.0 (2020-12-25 patchlevel 0) [x86_64-darwin19]
- INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/3.0.0
- USER INSTALLATION DIRECTORY: /Users/alessandrolodola/.local/share/gem/ruby/3.0.0
- RUBY EXECUTABLE: /usr/local/opt/ruby/bin/ruby
- GIT EXECUTABLE: /usr/local/bin/git
- EXECUTABLE DIRECTORY: /usr/local/lib/ruby/gems/3.0.0/bin
- SPEC CACHE DIRECTORY: /Users/alessandrolodola/.local/share/gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /usr/local/Cellar/ruby/3.0.0_1/etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-darwin-19
- GEM PATHS:
- /usr/local/lib/ruby/gems/3.0.0
- /Users/alessandrolodola/.local/share/gem/ruby/3.0.0
- /usr/local/Cellar/ruby/3.0.0_1/lib/ruby/gems/3.0.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /Users/alessandrolodola/.gem/ruby/3.0.0/bin
- /Users/alessandrolodola/.gem/ruby/3.0.0/bin
- /Users/alessandrolodola/.gem/ruby/X.X.0/bin
- /usr/local/opt/ruby/bin
- /Users/alessandrolodola/.gem/ruby/3.0.0/bin
- /usr/local/opt/ruby/bin
- /Users/alessandrolodola/.gem/ruby/3.0.0/bin
- /usr/local/opt/ruby/bin
- /usr/local/bin
- /usr/bin
- /bin
- /usr/sbin
- /sbin
- /opt/X11/bin
- /Library/Frameworks/Mono.framework/Versions/Current/Commands
I’m guessing I need to delete some of these redundant folders which I must have created accidentally as I’m learning on the fly here. Would it maybe be easier to reinstall everything. If so, what is the best way to do it and make sure I have a clean installation. Thanks in advance for the help.