diff --git a/src/index.ts b/src/index.ts index b9c628268..47354eab0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -166,6 +166,8 @@ async function init(): Promise { machineLogger.info(`CPU: ${os.cpus().length}core`); machineLogger.info(`MEM: ${totalmem}GB (available: ${freemem}GB)`); + new DependencyChecker().checkAll(); + let configLogger = new Logger('Config'); if (!fs.existsSync(`${__dirname}/../.config/config.yml`)) { configLogger.error('Configuration not found'); @@ -175,7 +177,6 @@ async function init(): Promise { configLogger.info('Successfully loaded'); configLogger.info(`maintainer: ${config.maintainer}`); - new DependencyChecker().checkAll(); if (process.platform === 'linux' && !isRoot() && config.port < 1024) { Logger.error('You need root privileges to listen on port below 1024 on Linux');