gpt4 book ai didi

heroku - Heroku命令错误.local/share/heroku/client/bin/heroku:第21行:

转载 作者:行者123 更新时间:2023-12-03 12:00:17 27 4
gpt4 key购买 nike

我的heroku工具带一直运行良好,直到上周才在所有heroku命令上给我这个错误。

$ heroku run console -a abc
/Users/songserm/.local/share/heroku/client/bin/heroku: line 21: /Users/songserm/.local/share/heroku/client/bin/node: No such file or directory
/Users/songserm/.local/share/heroku/client/bin/heroku: line 21: /Users/songserm/.local/share/heroku/client/bin/node: No such file or directory

我不知道我的heroku已自动升级,但是发生的变化是我大约安装了heroku-vi插件。不知道是不是这种情况。

有人看过这个问题吗?

注意,我使用自制软件在Mac上安装了heroku。

最佳答案

原因:

这也发生在我身上,客户端自动更新,但操作不正确:

heroku run console
heroku-cli: Updating to 6.11.14-c5f9179... 12.9 MB/12.9 MB
/Users/steves/.local/share/heroku/client/bin/heroku: line 21: /Users/steves/.local/share/heroku/client/bin/node: No such file or directory
/Users/steves/.local/share/heroku/client/bin/heroku: line 21: /Users/steves/.local/share/heroku/client/bin/node: No such file or directory

解:

解决方法是使用以下命令重新安装客户端(如 https://github.com/heroku/cli/issues/485所示):
rm -rf ~/.local/share/heroku/client

然后,我使用status命令进行了检查,并正确地重新安装了它:
heroku status
heroku-cli: Updating to 6.11.14-c5f9179... 12.9 MB/12.9 MB
Migrating Heroku CLI v5 plugins... done
Apps: No known issues at this time.
Data: No known issues at this time.
Tools: No known issues at this time.

关于heroku - Heroku命令错误.local/share/heroku/client/bin/heroku:第21行:,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44475565/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com