每次我尝试在cli上安装一个插件(在这种情况下是heroku-git),Heroku安装了toolbelt v4并说完了但没有安装插件。
我只是跑
heroku plugins:install heroku-git
我得到的答案就是这个
Installing Heroku Toolbelt v4... done
如果我尝试使用heroku plugins
列出插件,则表示我没有安装任何插件。
另一个奇怪的事情是,如果我尝试运行heroku git:remote
它会说这个
error loading plugin commands
Installing Heroku Toolbelt v4... done
No such file or directory - "C:/Users/Propri?taire/.heroku/heroku-cli.exe" plugins
C:/Program Files (x86)/Heroku/lib/heroku/jsplugin.rb:56:in ``'
C:/Program Files (x86)/Heroku/lib/heroku/jsplugin.rb:56:in `plugins'
C:/Program Files (x86)/Heroku/lib/heroku/jsplugin.rb:63:in `is_plugin_installed?'
C:/Program Files (x86)/Heroku/lib/heroku/jsplugin.rb:89:in `install'
C:/Program Files (x86)/Heroku/lib/heroku/command/git.rb:48:in `remote'
C:/Program Files (x86)/Heroku/lib/heroku/command.rb:212:in `run'
C:/Program Files (x86)/Heroku/lib/heroku/cli.rb:27:in `start'
C:/Program Files (x86)/Heroku/bin/heroku:29:in `<main>'
" ! Heroku client internal error."
#<Encoding:UTF-8>
" ! Search for help at: https://help.heroku.com"
#<Encoding:UTF-8>
" ! Or report a bug at: https://github.com/heroku/heroku/issues/new"
#<Encoding:UTF-8>
""
#<Encoding:UTF-8>
" Error: No such file or directory - \"C:/Users/Propri\x82taire/.heroku
/heroku-cli.exe\" plugins (Errno::ENOENT)"
#<Encoding:ASCII-8BIT>
" Command: heroku git:remote"
#<Encoding:UTF-8>
" Version: heroku/toolbelt/3.37.1 (i386-mingw32) ruby/1.9.3"
#<Encoding:UTF-8>
"\n"
#<Encoding:UTF-8>
" More information in C:/Users/Propri\x82taire/.heroku/error.log"
#<Encoding:IBM775>
"\n"
#<Encoding:UTF-8>
C:/Program Files (x86)/Heroku/lib/heroku/helpers.rb:441:in `join': incompatible
character encodings: ASCII-8BIT and IBM775 (Encoding::CompatibilityError)
from C:/Program Files (x86)/Heroku/lib/heroku/helpers.rb:441:in `format_
error'
from C:/Program Files (x86)/Heroku/lib/heroku/helpers.rb:450:in `styled_
error'
from C:/Program Files (x86)/Heroku/lib/heroku/cli.rb:39:in `rescue in st
art'
from C:/Program Files (x86)/Heroku/lib/heroku/cli.rb:19:in `start'
from C:/Program Files (x86)/Heroku/bin/heroku:29:in `<main>'
任何想法为什么会发生这种情况以及如何最终安装插件将不胜感激。
答案 0 :(得分:1)
我遇到了同样的问题
heroku plugins:install heroku-git
Installing Heroku Toolbelt v4... ! Heroku client internal error.
然后运行
gem install heroku
! The `heroku` gem has been deprecated and replaced with the Heroku Toolbelt.
! Download and install from: https://toolbelt.heroku.com
! For API access, see: https://github.com/heroku/heroku.rb
之后
heroku plugins:install heroku-git
heroku-cli: Installing Toolbelt v4... done
成功安装。
P.S。为我糟糕的英语而烦恼
答案 1 :(得分:0)
问题可能是非ascii用户名。这是CLI中的一个错误。