This is the issue because of some unwanted line in your server.js, it works locally but while deploy the app you’ll get it.
Just to confirm whether the issue in your code,Create a new app just give console in the callback function which you used and check whether will it installing or not.
@Ebubekir_Tabak,
Seems like you are using app setup events in your app, and you are not returning the data with renderdata method correctly,
Kindly follow this document for more reference