Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

fix manual installation issue on windows (thanks to @sizzlebop for bringing it up in #1219)

daniel31x13cb009b454df4
diff --git a/apps/worker/index.ts b/apps/worker/index.ts
index a32bed5a..996a91d1 100644
--- a/apps/worker/index.ts
+++ b/apps/worker/index.ts
@@ -1,7 +1,14 @@
import { spawn } from "node:child_process";
function launch() {
- const child = spawn("tsx", ["worker.ts"], { stdio: "inherit" });
+ // Spawning "tsx" directly fails on Windows (spawn tsx ENOENT) since .cmd
+ // shims can't be spawned without a shell. Resolve the CLI and run it with
+ // the current Node binary instead.
+ const child = spawn(
+ process.execPath,
+ [require.resolve("tsx/cli"), "worker.ts"],
+ { stdio: "inherit" }
+ );
child.on("exit", (code, signal) => {
console.error(