直到上周,我的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插件。不确定是不是真的。
有人见过这个问题吗?
注意到我用自制软件在我的Mac上安装了heroku。
发布于 2017-06-20 09:55:05
原因:
这也发生在我身上,客户端自动更新,但没有正确地这样做:
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.发布于 2017-12-16 14:52:59
执行Heroku命令时不是目录错误
heroku
▸ stat /User/xxx/.local/share/heroku/client/bin/heroku: not a directory
▸ fork/exec /User/xxx/.local/share/heroku/client/bin/heroku: not a directory解决方案是删除以前的目录。
rm -rf ~/.local/share/heroku/client发布于 2018-09-27 06:31:20
对我来说,一个快速的解决办法是删除这个文件。
rm -rf ~/.local/share/heroku我可以轻松地访问heroku控制台。
https://stackoverflow.com/questions/44475565
复制相似问题