[英]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.