在安装heroku
时,我将得到以下错误:
$ gem install heroku
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing heroku:
ERROR: Failed to build gem native extension.
current directory: c:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/heroku-3.99.4
c:/RailsInstaller/Ruby2.3.3/bin/ruby.exe -r ./siteconf20181030-11376-16mqlg7.rb extconf.rb
extconf.rb:1:in `<main>': heroku must be installed from cli.heroku.com. This gem is no longer available. (RuntimeError)
extconf failed, exit code 1
Gem files will remain installed in c:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/heroku-3.99.4 for inspection.
Results logged to c:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/extensions/x86-mingw32/2.3.0/heroku-3.99.4/gem_make.out
有什么问题,我该如何解决?
答案 0 :(得分:1)
Heroku的Ruby CLI已不再维护,不应使用:
heroku必须从cli.heroku.com安装。该宝石不再可用。
任何告诉您安装Ruby CLI的资源都已过时。
new CLI内置JavaScript。 Heroku provides installers for macOS and Windows, and a snap for Ubuntu。也可以安装CLI via npm
,但是在大多数情况下不建议这样做。
答案 1 :(得分:0)
签出alternative installation method for heroku就像下载heroku-win32-x64.tar.gz
,然后将其解压缩到您选择的文件夹中,而不是尝试安装gem。
然后确保将其添加到您的<ngb-accordion>
<ngb-panel>
<ng-template ngbPanelTitle>
<div class="d-flex justify-content-between">
<div class="d-flex p-2" style="font-weight: bold; color: #1c2128;">Checklist items</div>
<div class="d-flex p-2"><span style="color: #4A90E2;">gfg</span>05</div>
<div class="d-flex p-2"><i class="icon-arrow-down"></i></div>
</div>
</ng-template>
<ng-template ngbPanelContent>
text
</ng-template>
</ngb-panel>
</ngb-accordion>
。
或%PATH%
(如果您正在进行$PATH
会话:
git bash