用rbenv更新我的Ruby版本后,我无法使用Heroku命令行工具.我收到了这个错误:
> heroku rbenv: heroku: command not found The `heroku' command exists in these Ruby versions: 2.0.0-p195
从toolbelt.heroku.com重新安装工具带没有帮助.
如果您正在使用rbenv
,请按照以下步骤解决此问题.
错误
rbenv: heroku: command not found The `heroku' command exists in these Ruby versions: 2.2.2
该怎么办
rbenv local 2.2.2
gem uninstall heroku
rbenv rehash
很高兴去!
我切换到我之前的Ruby版本2.0.0p195并卸载了gem'heroku'
rbenv global 2.0.0p195 gem uninstall heroku
然后我切换到最新的Ruby版本2.0.0p353并重新安装了Toolbelt toolbelt.heroku.com
rbenv global 2.0.0p353