Node.js based forum software built for the modern web
refactor: show code/stack when dep check fails
Barış Soner Uşaklıf8733e06a783
diff --git a/src/cli/index.js b/src/cli/index.jsindex a413ec6ef1..e868b702c4 100644--- a/src/cli/index.js+++ b/src/cli/index.js@@ -42,7 +42,7 @@ try {checkVersion('lru-cache');} catch (e) {if (['ENOENT', 'DEP_WRONG_VERSION', 'MODULE_NOT_FOUND'].includes(e.code)) {- console.warn('Dependencies outdated or not yet installed.');+ console.warn(`Dependencies outdated or not yet installed. Error Code: ${e.code}\n${e.stack}`);console.log('Installing them now...\n');packageInstall.updatePackageFile();