Heroku建议从旧宝石切换到新的“Heroku Toolbelt”:
https://blog.heroku.com/archives/2012/10/15/upgrading-to-the-heroku-toolbelt
我成功运行了这些命令:
$ sudo gem uninstall heroku
$ sudo gem uninstall heroku --all
$ wget -O- https://toolbelt.heroku.com/install-ubuntu.sh | sh
然后我重新启动了终端,并且......我仍然使用旧版本:
$ heroku version
heroku-gem/2.33.5 (x86_64-linux) ruby/1.9.3
$ heroku fork
! `fork` is not a heroku command.
$ which heroku
/home/me/.rvm/gems/ruby-1.9.3-p362/bin/heroku
我忘了什么?
类似的问题:
~/.heroku/client
文件夹答案 0 :(得分:1)
看起来你仍然在你的一个rvm安装中安装了gem 尝试删除没有sudo的gem:
Linked Frameworks and Libraries
@echo off
setlocal
Set TXT=%1
CALL :dequote TXT
echo %TXT% | openssl dgst -sha256 -binary 2>NUL | openssl base64 2>NUL
goto xit
:: from http://ss64.com/nt/syntax-dequote.html
:DeQuote
for /f "delims=" %%A in ('echo %%%1%%') do set %1=%%~A
Goto :eof
:xit
endlocal
的值不应该在gem uninstall heroku
文件夹中,而应在which heroku
。