mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-11-22 12:52:50 +03:00
Revert "require package version from correct folder"
This reverts commit cfe9345b53
.
This commit is contained in:
parent
e58d659fa9
commit
0ec8b061c8
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user