diff --git a/meshcentral.js b/meshcentral.js index d2bb8950..17be5d65 100644 --- a/meshcentral.js +++ b/meshcentral.js @@ -4028,7 +4028,7 @@ function InstallModules(modules, args, func) { try { // Does the module need a specific version? if (moduleVersion) { - if (require(`${moduleName}/package.json`).version != moduleVersion) { throw new Error(); } + if (require(`./node_modules/${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.