安装gem后找不到命令

时间:2018-08-04 20:14:43

标签: shell middleman

版本冲突后,我重新安装了中间人gem。似乎也删除了导致错误的路径

command not found: middleman

但是我不确定如何将命令重新链接到gem!有没有人经历过类似的问题,并且知道将两者重新链接在一起的最佳解决方案是什么?

在我的宝石环境下

RubyGems Environment:
  - RUBYGEMS VERSION: 2.7.7
  - RUBY VERSION: 2.4.3 (2017-12-14 patchlevel 205) [x86_64-darwin17]
  - INSTALLATION DIRECTORY: /Users/pimzonneveld/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0
  - USER INSTALLATION DIRECTORY: /Users/pimzonneveld/.gem/ruby/2.4.0
  - RUBY EXECUTABLE: /Users/pimzonneveld/.rbenv/versions/2.4.3/bin/ruby
  - EXECUTABLE DIRECTORY: /Users/pimzonneveld/.rbenv/versions/2.4.3/bin
  - SPEC CACHE DIRECTORY: /Users/pimzonneveld/.gem/specs
  - SYSTEM CONFIGURATION DIRECTORY: /Users/pimzonneveld/.rbenv/versions/2.4.3/etc
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-darwin-17
  - GEM PATHS:
     - /Users/pimzonneveld/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0
     - /Users/pimzonneveld/.gem/ruby/2.4.0
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
     - :sources => ["http://gems.rubyforge.org/", "http://gems.github.com"]
     - :benchmark => false
     - "gem" => "--no-document"
  - REMOTE SOURCES:
     - http://gems.rubyforge.org/
     - http://gems.github.com
  - SHELL PATH:
     - /Users/pimzonneveld/.rbenv/versions/2.4.3/bin
     - /usr/local/Cellar/rbenv/1.1.1/libexec
     - ./bin
     - ./node_modules/.bin
     - /Users/pimzonneveld/.rbenv/shims
     - /Users/pimzonneveld/.rbenv/bin
     - /usr/local/bin
     - /usr/bin
     - /bin
     - /usr/sbin
     - /sbin
     - /usr/local/sbin

已安装的中间人宝石

*** LOCAL GEMS ***

font-awesome-middleman (4.5.0)
jquery-middleman (3.1.2)
middleman (4.2.1)
middleman-autoprefixer (2.9.0)
middleman-blog (4.0.2)
middleman-cli (4.2.1)
middleman-core (4.2.1)
middleman-sprockets (4.1.1)

0 个答案:

没有答案