mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-26 22:23: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 {
|
try {
|
||||||
// Does the module need a specific version?
|
// Does the module need a specific version?
|
||||||
if (moduleVersion) {
|
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 {
|
} else {
|
||||||
// For all other modules, do the check here.
|
// For all other modules, do the check here.
|
||||||
// Is the module in package.json? Install exact version.
|
// Is the module in package.json? Install exact version.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user