diff --git a/src/common/utils/cpmodule.ts b/src/common/utils/cpmodule.ts index 42cf6d26..f0eaa59b 100644 --- a/src/common/utils/cpmodule.ts +++ b/src/common/utils/cpmodule.ts @@ -3,8 +3,8 @@ import path from 'node:path'; import fs from 'fs'; export function getModuleWithArchName(moduleName: string) { - const systemPlatform = os.platform; - const cpuArch = os.arch; + const systemPlatform = os.platform(); + const cpuArch = os.arch(); return `${moduleName}-${systemPlatform}-${cpuArch}.node`; }