AxonTeam/GitHookAPI

cannot start the app

Closed this issue · 17 comments

hi, the app doesn't start, and the only error I get is that
applicationframehost_2019-01-15_10-51-14

Khaaz commented

First of all I want to highlight that this repository will not be meant to be selfhosted (or at least not in the same way as right now). So you might not be able to keep using this code in the future.
However this repository is a copy of https://github.com/Khaazz/Git-Discord-HookRouter. Both repository will diverge more in the future.

As for that error, it seems that your process is receiving a SIGINT signal.
Are you using last version of pm2?
What is your node version?
How are you starting the app?
And did you create the configs as specified in the readme?

Node and pm2 seem up to date, I'm starting the app with pm2 start scripts/start.js
My configs are right

Also sqlite3 was missing in the dependencies

Khaaz commented

We don't require sqlite? Are you sure you are running a clean version of this code?

Hm yeah, I cooked this repo and idk but it asked me to install sqlite3

Hello! Can you try starting your app without pm2? Just to see what the outcome will be? Also make sure you follow step by step instructions given in readme. Just to make sure everything is set alright

Also, what version of node are you using? It seems like it marked http2 as an experimental API while in fact it is a Stable API

I'm getting that error now
image
I'm using node v.10.14.1

It seems like you haven't installed express. Try using npm install --production --no-optional or yarn install --production --ignore-optional if you're using yarn and try again. Make sure you follow instructions in readme. Also make sure you update your node version to v10.15.0 since that's the LTS version of node.

It seems like you may be having a lock file with unresolved conflicts. Try removing previously generated package-lock.json file and try that command again.

Seems like your clone of the project is messed up as it doesn't have a package.json file. Try deleting that clone and follow the instructions below.

git clone https://github.com/AxonTeam/GitHookAPI.git
cd GitHookAPI
npm install --production --ignore-optional

And follow the instructions here.

ok, I did that but now I'm receiving the same error as #1 (comment) when I try to install the dependencies

Try clearing cache using npm cache clean --force and try npm install --production --ignore-optional and follow these instructions.

Closing issue as cleaning npm cache fixed their problem