【发布时间】:2018-02-03 17:26:41
【问题描述】:
我之前从终端创建了 heroku 应用程序,但由于某种原因,这对我不起作用:
$ heroku create my-app
我得到以下结果
Refreshing plugins... !
▸ semver has no commands. Is this a CLI plugin?
Refreshing plugins... done
Refreshing plugins... !
▸ semver has no commands. Is this a CLI plugin?
Refreshing plugins... done
▸ create is not a heroku command.
▸ Perhaps you meant update
▸ Run heroku help for a list of available commands.
我更新了我的brew 以获得最新版本的heroku。当我运行heroku -v 时,我得到:
heroku-cli/6.15.11 (darwin-x64) node-v9.3.0
我也很确定它安装正确。当我运行which heroku 时,我得到:
/usr/local/bin/heroku
一个奇怪的线索似乎是heroku help 给了我以下信息:
Refreshing plugins... !
▸ semver has no commands. Is this a CLI plugin?
Refreshing plugins... done
Refreshing plugins... !
▸ semver has no commands. Is this a CLI plugin?
Refreshing plugins... done
Usage: heroku COMMAND
Help topics, type heroku help TOPIC for more details:
auth
plugins add/remove CLI plugins
这似乎显然不包括create作为命令之一,所以我需要以某种方式添加create吗?我知道create 是apps:create 的简写,所以我尝试了两者并得到了相同的结果。
我不确定它是否相关,但我最近更新到 Mac OS High Sierra。
【问题讨论】:
-
我遇到了与 heroku-cli/6.15.11-5cba33c (linux-x64) node-v9.3.0 类似的问题,我通过更新到 heroku-cli/6.15.13-3dce47c 来修复它(linux-x64) node-v9.3.0 可能不需要。首先,我建议您删除 ~/.local/share/heroku/client 您可以在 heroku/cli/issues/673 中找到