From 0ec8b061c88f1142089f30869864d26fc521eb10 Mon Sep 17 00:00:00 2001 From: si458 Date: Mon, 4 Nov 2024 13:59:50 +0000 Subject: [PATCH] Revert "require package version from correct folder" This reverts commit cfe9345b53fcd660985d7ce7b82278182b40f41e. --- meshcentral.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshcentral.js b/meshcentral.js index 3dcd7806..3ee0622b 100644 --- a/meshcentral.js +++ b/meshcentral.js @@ -4033,7 +4033,7 @@ function InstallModules(modules, args, func) { try { // Does the module need a specific version? if (moduleVersion) { - if (require(`./node_modules/${moduleName}/package.json`).version != moduleVersion) { throw new Error(); } + if (require(`${moduleName}/package.json`).version != moduleVersion) { throw new Error(); } } else { // For all other modules, do the check here. // Is the module in package.json? Install exact version.