Issue
I am new to Heroku and I am trying to deploy my first app onto Heroku.
I followed instruction, which were:
- git init, add and commit my app’s source code.
- heroku create to create Heroku remote repo for my app.
- git push heroku master to push my app’s source code to heroku
- heroku open
Problem happened when I tried to run heroku open, which was:
$ heroku open
(node:6192) SyntaxError Plugin:
heroku:C:\Users\hauph\AppData\Local\heroku\conf
ig.json: Unexpected string in JSON at position 72 module:
@oclif/[email protected]
task: runHook prerun
plugin: heroku
root: C:\Program Files\heroku\client
See more details with DEBUG=*
I checked file config.json at the direction as addressed above, and it was:
{
"schema": 1,
"install": "554c101b-d4de-496c-9768-710142ebfb20"
}
"skipAnalytics": false
}
So what did I do wrong here?
I would be grateful for any help.
Thank you very much!
Solution
Your config.json
contains invalid JSON (note the two closing brackets). Reinstall the Heroku CLI, and you should be in good shape.