节点应用无法推送到Heroku

时间:2018-03-25 23:25:23

标签: angularjs node.js express heroku

我正在接受这个错误  构建失败 remote:parse error:在第53行第3列预期另一个键值对 remote:parse error:在第53行第3列预期另一个键值对 remote:parse error:在第53行第3列预期另一个键值对 这是我的 package.json 第53行是引擎之前的大括号

"devDependencies": {

"@angular/language-service": "^5.2.0",
"@types/jasmine": "~2.8.3",
"@types/jasminewd2": "~2.0.2",
"@types/node": "~6.0.60",
"codelyzer": "^4.0.1",
"jasmine-core": "~2.8.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~2.0.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "^1.2.1",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.1.2",
"ts-node": "~4.1.0",
"tslint": "~5.9.1"

}

"engines": {
"node" : "8.10.0",
"npm" : "5.6.0"
}

1 个答案:

答案 0 :(得分:2)

我认为你只是在第53行错过了一个逗号

{
  "devDependencies": {

  "@angular/language-service": "^5.2.0",
  "@types/jasmine": "~2.8.3",
  "@types/jasminewd2": "~2.0.2",
  "@types/node": "~6.0.60",
  "codelyzer": "^4.0.1",
  "jasmine-core": "~2.8.0",
  "jasmine-spec-reporter": "~4.2.1",
  "karma": "~2.0.0",
  "karma-chrome-launcher": "~2.2.0",
  "karma-coverage-istanbul-reporter": "^1.2.1",
  "karma-jasmine": "~1.1.0",
  "karma-jasmine-html-reporter": "^0.2.2",
  "protractor": "~5.1.2",
  "ts-node": "~4.1.0",
  "tslint": "~5.9.1"

  },

  "engines": {
  "node" : "8.10.0",
  "npm" : "5.6.0"
  }
}