Bug: bunx t3@alpha fails on Linux rebuilding node-pty #204
Problem#
Running bunx t3@alpha on Linux fails during dependency installation because node-pty tries to rebuild from source and requires node-gyp, even though the same package works with npx t3@alpha.
Reproduction#
bunx t3@alpha
Output:
⚙️ node-pty [1/3] > Checking prebuilds...
> Rebuilding because directory /tmp/bunx-1000-t3@alpha/node_modules/node-pty/prebuilds/linux-x64 does not exist
/usr/bin/bash: line 1: node-gyp: command not found
error: install script from "node-pty" exited with 127
Expected#
bunx t3@alpha installs and launches successfully, or at least handles the missing native build dependency more gracefully.
Actual#
The install fails before the CLI can start.
Notes#
npx t3@alphaworks on the same machine.- I was using the latest
t3@alphaavailable at the time of testing. - Environment: Linux x64.
This seems like a Bun/Bunx compatibility issue around how node-pty prebuilds are resolved from the temporary install directory.
We do not support Bun and probably won't ever support it for the runner. Solution is to either force it to always execute through Node, or error when you try to execute through Bun. I don't feel strongly about either solution.
maria-rcks added labelsbug
juliusmarminge closed this
@t3dotgg maybe you posted else where and I didn't see but why no support for bun?
I ran into this issue and found this thread, so would +1 on a nicer message
➜ ~ bunx t3 [10:31:07.057] ERROR (#1): TypeError: parent.currentScheduler.scheduleTask is not a function at forkUnsafe (file:///private/tmp/bunx-501-t3@latest/node_modules/effect/dist/internal/effect.js:1984:29)@0x63616c this has been fixed in https://github.com/pingdotgg/t3code/pull/1311
Sign in to join this conversation.
@juliusmarminge @t3dotgg I can work on it, although here is the prompt:
PROMPT#