tursodatabase / tursodatabase/libsql

Error: The specified module could not be found. `\node_modules\@libsql\win32-x64-msvc\index.node`

Open
#1,797 6 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
17.2k
Forks
531
Avg merge
1h 12m
Merged PRs (30d)
1

Description

I got this error only on the Windows machine I've tried it on Linux (Ubuntu) in the WSL It works fine,
except for Windows, I think because it's missing the compiled binaries from @libsql\win32-x64-msvc I tried installing it manually and adding it into production dependencies using both npm and pnpm but no chance *(i rolled out on all the boring processes deleting pkg manager cache, etc...)

My Machine
  • OS: Windows 11
  • nodejs: v20.17.0
  • npm: 10.9.0
  • pnpm: 9.12.2
My stack:
  • NextJS *(15) and then tried 14
  • Turso (libsql)
  • Drizzle ORM
  • GraphQL
{
  "dependencies": {
      "@libsql/client": "^0.14.0",
      "@libsql/win32-x64-msvc": "^0.4.6",
      "drizzle-orm": "^0.35.3",
  }
}
Screenshot might help:

image

Honestly, I have doubts that this error is coming from the drizzle orm itself, so i drop the same issue in the drizzle GitHub repo https://github.com/drizzle-team/drizzle-orm/issues/3205

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No project file, test, or entry point is named. Start by reproducing the missing @libsql/win32-x64-msvc error on Windows 11 with the listed Node.js, npm, or pnpm versions, then compare the working Ubuntu/WSL setup; done means the native module loads successfully on Windows.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, next.js, node.js, sqlite
Domain
backend, databases, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.