gpt4 book ai didi

Heroku 登录 - JSONError : Unexpected end of JSON input while parsing near ' '

转载 作者:行者123 更新时间:2023-12-04 17:42:53 26 4
gpt4 key购买 nike

我正在尝试在我的终端中登录我的 Heroku 帐户。但是,当我输入 heroku login 时,出现一条消息说按一个键打开我的浏览器,但浏览器没有打开并且登录失败,然后出现此消息。

JSONError: Unexpected end of JSON input while parsing near ' '
at module.exports (/usr/lib/heroku/node_modules/parse-json/index.js:26:19)
at HTTP._parse (/usr/lib/heroku/node_modules/@heroku-cli/plugin-auth/node_modules/http-call/lib/http.js:343:25)

请注意,如果重要的话,我正在使用虚拟机 vagrant!另外,我正在使用 Ubuntu 操作系统。

enter image description here

更新:我厌倦了不使用虚拟机登录,我成功登录所以,我怀疑 Vagrant 是问题所在!。

最佳答案

我找到了这个问题的解决方案
与 heroku 登录一起使用 --interactive 标志。
heroku login --interactive
here is the link where you can read about it

关于Heroku 登录 - JSONError : Unexpected end of JSON input while parsing near ' ' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55874811/

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