我正在尝试使用 CLI 将 mongolab 插件添加到我的 heroku 应用程序中,但每次使用heroku addons:add mongolab
命令时都会收到以下消息。
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
▸ addons:add is not a heroku command.
▸ Perhaps you meant plugins:link
▸ Run heroku help for a list of available commands.
知道发生了什么以及解决方法吗?
创建新
插件并将其附加到应用程序的命令是heroku addons:create
,而不是heroku addons:add
:
heroku addons:create mongolab:sandbox
如果这仍然给你一个"semver"错误,你的Heroku CLI可能被破坏了。尝试重新安装它。
可以使用heroku addons --help
查看有关使用 heroku addons
命令的详细信息。