簡體   English   中英

錯誤-git push heroku master

[英]Error - git push heroku master

如果您想幫助我,我會非常感激。 因此,當我編寫git push heroku master時,它無法解析,並且在您吐口氣並對我說“讀其他人!!!”之前 我有。 我重寫了package.JSON並使用了驗證器。 奇怪的是,每次我重新格式化package.JSON時,總是說第9行第3列。我已經更改了5-7次。 我不認為我的package.json是必需的,因為它總是會帶來該錯誤。 但是無論如何,這是事實。

{
  "name": "vulture",
  "version": "1.0.1",
  "description": "Vulture is a bot for discord.",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "engines": {
    "node": "8.4.0",
    "npm": "5.4.0"
  },
  "author": "swagehsaan840#0336",
  "license": "MIT"
}

旁注正在更改,它可能會給我同樣的錯誤,但是我不知道,在使用驗證器並進行了任何更改之后,它始終顯示第9行,第3列。謝謝! :)

嘗試這樣寫package.json

{
 "name": "vulture",
 "version": "1.0.0",
 "description": "vulture",
 "main": "index.js",
 "private": true,
 "scripts": {
   "start": "node index.js",
  },
 "author": "vulture",
 "license": "ISC",
 "dependencies": {
   "node": "8.4.0",
   "npm": "5.4.0"
 }
}

添加Buildpacks在Heroku上轉到設置中選擇添加Buildpacks - >選擇的NodeJS

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM