我以前在终端上创建了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的缩写,所以我尝试了两种方法,并得到了相同的结果。
我不确定这是否相关,但我最近更新到MacOSHigh塞拉利昂。
发布于 2018-01-10 00:20:03
我也遇到了同样的问题。我找到的唯一解决方案是从自制软件中卸载,然后从这里手动安装heroku-cli包,https://cli-assets.heroku.com/heroku-cli/channels/stable/heroku-cli.pkg我只是在升级到High之后才体验到这一点。
发布于 2018-02-03 09:26:41
您可以使用以下命令从命令行登录:
$ heroku login
Email: <your email>
Password: <your password>发布于 2018-01-09 01:28:38
最终,这是一个比原先预期的更大的问题。今天(在尝试了注释中的建议之后),我意识到我也遇到了节点问题(我无法在任何地方npm init )。我最终完全重新安装了macOS。
当那不起作用时,我完全删除和重新安装macOS。通过brew重新安装节点和heroku之后,它就成功了。
我知道删除和重新安装macOS是一个相当激烈的选择,但它似乎没有任何其他工作。我希望有一个更好的答案,但我只是想列入这个问题,以防其他人偶然发现这个问题。
https://stackoverflow.com/questions/48142243
复制相似问题