error: Cannot find module "@libsql/linux-x64-musl" from "~/todion/node_modules/libsql/index.js"
error: Cannot find module "@libsql/linux-x64-musl" from "~/todion/node_modules/libsql/index.js"

11 Replies
Also, maybe this is useful. There was an error earlier before this that required me to install
better-sqlite3
for some reason.
also I just updated to Bun v1.0.0 and it's still not workingThis is ultimately a Libsql issue, and likely a compatibility issue with your environment
libsql doesn’t appear to publish binaries compiled for musl libc, only gnu libc
I’m guessing you’re trying to run on alpine?
no, im trying to run on elysia
and turso
Haven’t heard of Elysia, but I’m referring to your operating system/Linux distribution
That you’re running that command on
Having the same issue. On Ubuntu 22.04 (WSL). I believe OP is trying to learn the BETH stack https://www.youtube.com/watch?v=cpzowDDJj24 as I'm doing the same. There appears to be a few instances where people like us cannot successfully run any drizzle commands to connect to Turso DB. I get 404 errors when trying to run
bun x drizzle-kit push:sqlite
, and get this same missing module error whilst trying to use drizzle-kit studio.Ethan Niser
YouTube
The BETH Stack: Build Hypermedia-Driven Web Apps with Great DX and ...
An opinionated way to build web apps in 2023
-------------
LIVE SITE- https://the-beth-stack.fly.dev/
PROJECT REPO- https://github.com/ethanniser/the-beth-stack
Bun - https://bun.sh/
Elysia - https://elysiajs.com/
Turso - https://turso.tech/
HTMX - https://htmx.org/
typed-html - https://github.com/nicojs/typed-html
tailwind-css - https://tailwi...
To be transparent, I'm on Bun v0.8.1. It seems like Bun v1.0.0 breaks this stack completely, and the main issue seems to be with Turso. There's a thread on their Discord.
Ubuntu
LTS
Aaaaand found it
There’s a node API not currently implemented in Bun which is causing libsql to fall back to thinking your system is using musl instead of glibc. There’s apparently a PR to bun for implementing it https://github.com/oven-sh/bun/pull/3326
GitHub
Implement
process.report
by LiminalHelix · Pull Request #3326 · o...Primarily implements process.report.getReport() and process.report.writeReport()
Not all fields of the returned report object are implemented, many are stubbed, some temporarily, others may be fore...
This is definitely not a drizzle issue, is sort of an issue in libsql and
@neon-rs/load
, but ultimately an issue with bun
Aaaaaaand another error lol
I have never seen this error in my entire life