Upgraded to macOS Sierra, now middleman: command not found

Hi I get this error when im trying to init a project:

command not found: middleman

RubyGems Environment:

  • RUBYGEMS VERSION: 2.4.8
  • RUBY VERSION: 2.0.0 (2015-12-16 patchlevel 648) [universal.x86_64-darwin16]
  • INSTALLATION DIRECTORY: /Library/Ruby/Gems/2.0.0
  • RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
  • EXECUTABLE DIRECTORY: /usr/bin
  • SPEC CACHE DIRECTORY: /Users/disenadortv/.gem/specs
  • SYSTEM CONFIGURATION DIRECTORY: /Library/Ruby/Site
  • RUBYGEMS PLATFORMS:
    • ruby
    • universal-darwin-16
  • GEM PATHS:
    • /Library/Ruby/Gems/2.0.0
    • /Users/disenadortv/.gem/ruby/2.0.0
    • /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/gems/2.0.0
  • GEM CONFIGURATION:
    • :update_sources => true
    • :verbose => true
    • :backtrace => false
    • :bulk_threshold => 1000
  • REMOTE SOURCES:
  • SHELL PATH:
    • /usr/local/bin
    • /usr/bin
    • /bin
    • /usr/sbin
    • /sbin

➜ test which ruby
/usr/bin/ruby

➜ test which gem
/usr/bin/gem

what can I do to fix this issue?

I assume you had Middleman installer before upgrading to Sierra, but you weren’t using any Ruby manager (such as RVM or Rbenv), right? Probably all Ruby environment has been overwritten with new versions, possibly old one is moved to a side. Check if /Library/Ruby/Gems/ contains anything else except 2.0.0. Do you have already some Middleman projects created? Do they work fine?

Yeah your where right about not using a ruby manager I did installed one (Rbenv) re-installed Middleman and now my projects are working fine, thanks for the heads up!