mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-25 21:53:14 -05:00
Revert "require package version from correct folder"
This reverts commit cfe9345b53fcd660985d7ce7b82278182b40f41e.
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…
x
Reference in New Issue
Block a user