我推到Heroku没问题,但是现在每当我写一个命令,比如:heroku createheroku opengit push heroku master它给了我这个错误:$ heroku open ▸ heroku-cli: This CLI is deprecated. Please reinstall from ▸ https://cli.heroku.com我该怎么做才能阻止这一切?我在以前没有给过我任何问题的网站上运行heroku,但现在出现了错误。我使用的是相同的设计,身份验证细节没有改变。我还重新启动了电脑(它是一台Mac电脑)。 最佳答案 使用自制的Heroku CLI升级如下:brew upgrade heroku如果看到Error: heroku not installed消息,请重新安装:brew install heroku您还可以看到以下输出:The formula built, but is not symlinked into /usr/localCould not symlink bin/herokuTarget /usr/local/bin/herokualready exists. You may want to remove it: rm '/usr/local/bin/heroku'To force the link and overwrite all conflicting files: brew link --overwrite herokuTo list all files that would be deleted: brew link --overwrite --dry-run herokuPossible conflicting files are:/usr/local/bin/heroku -> /usr/local/heroku/bin/heroku在这种情况下,只需按照说明并运行:测试您是否仍有取消预测信息,例如:希望这有帮助。
07-24 09:45
查看更多