简体   繁体   English

错误-git push heroku master

[英]Error - git push heroku master

If you're attempting to help me, I really appreciate it. 如果您想帮助我,我会非常感激。 So when I write git push heroku master, it fails to parse, and before you spit at me and say 'READ OTHERS!!!!' 因此,当我编写git push heroku master时,它无法解析,并且在您吐口气并对我说“读其他人!!!”之前 I have. 我有。 I've rewritten the package.JSON and used a validator. 我重写了package.JSON并使用了验证器。 The strange thing is it always says line 9, column 3, every time I reformat the package.JSON, always line 9, column 3. I have changed over 5-7 times. 奇怪的是,每次我重新格式化package.JSON时,总是说第9行第3列。我已经更改了5-7次。 I don't think my package.json is necessary as it always brings that error. 我不认为我的package.json是必需的,因为它总是会带来该错误。 But here it is anyway. 但是无论如何,这是事实。

{
  "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"
}

A side note is changing it will probably give me the same error, but I never know, after using a validator and changing any times, it always says line 9, column 3. Thanks anyway! 旁注正在更改,它可能会给我同样的错误,但是我不知道,在使用验证器并进行了任何更改之后,它始终显示第9行,第3列。谢谢! :) :)

try to write this way package.json 尝试这样写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.

相关问题 git push heroku master给我报错 - git push heroku master is giving me an error 运行“git push heroku master”时出现错误 - I get an error when running “git push heroku master” git push heroku master Remote failed - git push heroku master Remote failed git push heroku master 与 node.js 部署挂起 - git push heroku master with node.js deploy hanging React应用程序Heroku构建失败-git push heroku master-预期X,第1行出现解析错误,输入意外结束。 哪个文件的第1行? - React app Heroku build failed - git push heroku master - Expecting X, Parse error on line 1: got unexpected end of input. Line 1 of which file? 挂在 git 上的 Express 应用程序构建推送到 Heroku - Express app build hanging on git push to Heroku MERN 堆栈推送到 heroku:! [远程拒绝] master -> master(预接收钩拒绝) - MERN Stack push to heroku: ! [remote rejected] master -> master (pre-receive hook declined) 我想在 heroku 上托管我的 discord bot,我做的一切都是正确的,但是当我执行 git push heroku 时,我在日志中收到错误 - i want to host my discord bot on heroku and i do everything correct but when i do git push heroku i get error in logs 推送到 Heroku 后 Mongoose 加密错误 - Mongoose-Encryption error after push to Heroku 如何用hyper推送heroku应用? 出现错误 - How to push heroku app with hyper ? getting error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM