Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Syntax error when start $ heroku open

I am new to Heroku and I am trying to deploy my first app onto Heroku. I followed instruction, which were:

  1. git init, add and commit my app's source code.
  2. heroku create to create Heroku remote repo for my app.
  3. git push heroku master to push my app's source code to heroku
  4. 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=*

Image taken from that error

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!

like image 234
HauPham Avatar asked Jun 06 '26 08:06

HauPham


1 Answers

I had the same problem. Not sure why it ends up corrupted, but the config.json should look like the following (get rid of the curly brace before skipAnalytics):

{
  "schema": 1,
  "install": "3265b92a-27f4-4adb-9c07-75d9213f0000",
  "skipAnalytics": false
}
like image 72
LittletonDoug Avatar answered Jun 09 '26 01:06

LittletonDoug