简体   繁体   中英

git push heroku master errror. Failed to compile php app. could not parse composer.json

-----> PHP app detected
 !     ERROR: Could not parse 'composer.json'; make sure it's valid!
 !     Push rejected, failed to compile PHP app.
 !     Push failed

my json file is just {}

From https://getcomposer.org/schema.json , it looks like both name and description are REQUIRED. I expect you'll need to fill out at least those and then validate it before pushing.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM