-bash: /usr/local/bin/heroku: /usr/local/bin/ruby: bad interpreter: No such file or directory

前端 未结 6 1470
死守一世寂寞
死守一世寂寞 2021-01-17 14:38

Whenever I open a new terminal window I now get:

-bash: /usr/local/bin/heroku: /usr/local/bin/ruby: bad interpreter: No such file or directory

A

6条回答
  •  囚心锁ツ
    2021-01-17 15:19

    I had a similar problem which resulted in the following error message when I tried to run any heroku commands:

    (~/).gem/ruby/1.8/bin/heroku: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory
    

    After some searching, I found a copy of the heroku-api gem in ~/.gem/ruby/1.8/cache. Deleting it and deleting the rubygems reference file in ~/.gem/ruby/1.8/bin solved the problem.

提交回复
热议问题