Skip to content

Commit

Permalink
require package version from correct folder
Browse files Browse the repository at this point in the history
Signed-off-by: si458 <[email protected]>
  • Loading branch information
si458 committed Oct 17, 2024
1 parent 1e2d736 commit cfe9345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meshcentral.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit cfe9345

Please sign in to comment.