Revert "require package version from correct folder"
This reverts commit cfe9345b53fcd660985d7ce7b82278182b40f41e.
si458 committed
Nov 4, 2024 at 13:59 UTC
0ec8b061c88f1142089f30869864d26fc521eb10
1 file changed
+1
-1
meshcentral.js
+1
-1
@@ -4033,7 +4033,7 @@ function InstallModules(modules, args, func) {
4033
try {
4034
// Does the module need a specific version?
4035
if (moduleVersion) {
4036
- if (require(`./node_modules/${moduleName}/package.json`).version != moduleVersion) { throw new Error(); }
4036
+ if (require(`${moduleName}/package.json`).version != moduleVersion) { throw new Error(); }
4037
} else {
4038
// For all other modules, do the check here.
4039
// Is the module in package.json? Install exact version.