From ed445f830f8f25315f34e58977e7109cf3bca906 Mon Sep 17 00:00:00 2001 From: Oj Date: Thu, 24 Mar 2022 13:14:32 +0000 Subject: [PATCH] [Updater > v2] Fix undefined error --- src/updater/updater.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/updater/updater.js b/src/updater/updater.js index 9f4d6f8..a488086 100644 --- a/src/updater/updater.js +++ b/src/updater/updater.js @@ -163,7 +163,7 @@ class Updater extends EventEmitter { const base = join(this._getHostPath(), 'modules'); for (const mod in versions.current_modules) { - const path = join(modulesPath, `${mod}-${versions.current_modules[mod]}`); + const path = join(base, `${mod}-${versions.current_modules[mod]}`); if (!Module.globalPaths.includes(path)) Module.globalPaths.push(path); }