diff --git a/lib/binding.ts b/lib/binding.ts index bc1ff4f..b71395c 100644 --- a/lib/binding.ts +++ b/lib/binding.ts @@ -70,5 +70,6 @@ export const loadModule = async (variant?: string): Promise => { return await import(`../bin/${process.platform}-${variant}/${process.arch}/llama-node.node`) as Module } } catch {} // ignore errors and try the common path + setupEnv() return await import(`../bin/${process.platform}/${process.arch}/llama-node.node`) as Module } \ No newline at end of file