Git push the hero master with a parse error - which file?

I get a parsing error when I execute the git master hero. Heroku tells me which row and column are causing the parsing error, but not the file. How to find out which file the hero has parsing problems? Please inform.

----- package.json -----

{
  "name": "mean",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node server.js"
  },
  "dependencies": {
    "mongoose": "3.8.7",
    "express": "3.4.8",
    "jade": "*",
    "stylus": "*"
  },
  "engines": {
    "node": "0.10.x",
    "npm": "1.4.x"
  }
}

----- output -----

[23:46 56] git push heroku master
Initializing repository, done.
Counting objects: 259, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (242/242), done.
Writing objects: 100% (259/259), 927.54 KiB | 550.00 KiB/s, done.
Total 259 (delta 13), reused 0 (delta 0)

-----> Node.js app detected
parse error: Expected separator between values at line 13, column 16

 !     Push rejected, failed to compile Node.js app

To git@heroku.com:mighty-mountain-5447.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:mighty-mountain-5447.git'
+4
source share
3 answers

It also happened that it was a comma that I missed in the file .json.

You probably didn't immediately put this comma on line 13, and you did

  },

Try again, then click on Heroku.

+7
source

. package.json, , "":

{
    "engines": {
        "node": "0.10.x"
    },  <-- missed this comma here

    "name": "heroku",...
+6

, git , /. git commit -a git push heroku master, , .

+1

All Articles