Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vvhybe opened this issue Oct 27, 2024 · 2 comments

Comments

@vvhybe
Copy link

vvhybe commented Oct 27, 2024

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 drizzle-team/drizzle-orm#3205

@Johnkat-Mj
Copy link

I am also facing this error,

Hey @vvhybe have you found a solution? It seems to be a problem related to libsql on win11
On win10 it works well

@vvhybe
Copy link
Author

vvhybe commented Nov 6, 2024

I am also facing this error,

Hey @vvhybe have you found a solution? It seems to be a problem related to libsql on win11 On win10 it works well

@Johnkat-Mj, you have confirmed my doubts about the problem that occurs only on WIN 11 using the libsql pkg.
because I have tried to resolve that error as you saw on the Issue I thought at first it drizzle that's caused the stack of errors and not compatible with libsql on Windows, I have tried installing the Windows compiled binaries for libsql but no chance and I couldn't find any solution, so I decided to switch all my development into Linux (Ubuntu), after I tested it on WSL and it works fine

Now you said it works fine on Win 10 I think it may have to do with something related to Win 11 or Powershell execution policy.!

If you dropped on any possible way to resolve this error inform me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants