Heroku 新版本 login 开启网页登入失败问题
新版本的heroku login需要开启登入网站,在网站登入后显示:
$ heroku login
heroku: Press any key to open up the browser to login or q to exit:
Opening browser to https://cli-auth.heroku.com/auth/browser/5...
heroku: Waiting for login...
!
JSONError: Unexpected end of JSON input while parsing near ' '
at module.exports (C:/Program Files/heroku/client/node_modules/parse-json/index.js:26:19)
at HTTP._parse (C:/Program Files/heroku/client/node_modules/@heroku-cli/plugin-auth/node_modules/http-call/lib/http.js:343:25)
新版本需要用 heroku login --interactive
指令输入之后,需要ctrl-C 来终止再回到homestead, 目前未知原因。
推荐文章: