You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Can't install t3 via npm on remote debian 13 (VM) #11823
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
apps/server
Steps to reproduce
create a Debian VM (Linux 6.12.107+deb13-amd64)
install node 26 via nvm
run npx --loglevel verbose t3@latest connect
see the error
Expected behavior
it would install and show the sign in flow
Actual behavior
the t3 version install is stopped at the node-pty
(...)
npm info run [email protected] install node_modules/msgpackr-extract node-gyp-build-optional-packages
npm info run [email protected] install node_modules/node-pty node scripts/prebuild.js || node-gyp rebuild
npm info run [email protected] install { code: 0, signal: null }
npm info run [email protected] install { code: 1, signal: null }
npm verbose cwd /home/moda20
npm verbose os Linux 6.12.107+deb13-amd64
npm verbose node v26.8.2
npm verbose npm v11.19.1
npm verbose exit 1
npm verbose code 1
This doesn't work for the latest preview or nightly as well (at least as of writing this) but they have a different issue :
t3: no T3 Code CLI build is available for this platform (linux-x64).
Supported platforms: darwin-arm64, linux-arm64, linux-x64, win32-arm64, win32-x64.
Thanks for the report — this is a real install blocker on Linux x64, not a wash of #11556.
What we think is going on
There are two different install shapes on npm right now, and you hit both.
1. t3@latest (0.0.40) — node-pty must compile
latest is still the old Node server package (apps/server → node-pty@^1.1.0). That tarball has no Linux prebuilds (darwin/win32 only), so npx t3@latest always runs:
node scripts/prebuild.js || node-gyp rebuild
Your log shows that script running and exiting 1. That is an actual compile/rebuild failure, not npm 12 allow-scripts skipping the script (the closed #7847 / #7475 / #7576 class).
A stock Debian 13 VM usually does not have g++ / make / python3. #11556 confirmed the same [email protected]does build on Node v26.8.2 when g++ is present, so Node 26 itself is probably not the blocker (engines already allow >=24.10). We still want the node-gyp stanza to be sure.
This is related to #11556 (same missing Linux prebuild) but not a duplicate: that issue is linux-arm64 and dies at server start (NodePtyModuleLoadError); yours is linux-x64 and dies during install.
2. t3@preview / t3@nightly — launcher cannot see @t3code/t3-linux-x64
As of #11607, preview/nightly t3 is only a small launcher. The real CLI is an optional dependency @t3code/t3-linux-x64@<same version>. The message:
t3: no T3 Code CLI build is available for this platform (linux-x64).
Supported platforms: darwin-arm64, linux-arm64, linux-x64, win32-arm64, win32-x64.
means require.resolve("@t3code/t3-linux-x64/package.json") failed. linux-x64 is supported; npm did not leave that optional package on disk.
Those platform packages are published for the current tags (0.0.41-nightly.20260914.1722, 0.0.41-preview.20260914.1724, ~206MB, os=linux / cpu=x64). Typical reasons they get dropped: optional-dep install/extract failed (including lifecycle scripts on bundled node-pty), omit=optional, a stale npx cache, or a nightly from the #11607 rollout that listed the dep before the tarball existed.
#10687 (probe native deps before activating updates) is adjacent and does not close this. Default curl | sh cannot save latest yet: v0.0.40 has no CLI archive.
Workaround (Debian VM, no compiler)
Prefer the standalone installer on nightly (needs curl/tar only; no Node, npm, or g++):
curl -fsSL https://t3.codes/install.sh | T3CODE_CHANNEL=nightly sh
# then ensure ~/.local/bin is on PATH
t3 connect
Harden the launcher error when the platform is listed but the optional package is missing (and make sure npx actually lands the ~206MB @t3code/t3-* tarball).
Additional data point from Linux ARM64, likely separate from the original x64 failure:
@t3code/[email protected] installs successfully, and the platform package is present. However, the same native binary behaves differently across two ARM64 hosts:
I also downloaded t3-0.0.41-nightly.20260915.1780-linux-arm64.tar.gz from the GitHub release. Its t3 binary has the same SHA256, so the installer-first route downloads the same executable and does not avoid this failure.
Relevant ELF details:
ELF 64-bit LSB executable, ARM aarch64
interpreter /lib/ld-linux-aarch64.so.1
Start of program headers: 112718032 bytes
Number of program headers: 13
The older Node-based ARM64 nightly runs on the Oracle Linux host, while a later pre-self-contained nightly crashes on the known missing node-pty Linux ARM64 prebuild described in #11556.
This seems distinct from the missing optional dependency reported here: npm successfully installs the ARM64 platform package, but the resulting self-contained executable is rejected by the newer kernel. Would you prefer a separate issue for this kernel-specific ARM64 failure?
Closing as fixed by #11607, first shipped in [email protected]. t3 is now a small launcher over per-platform executable packages, so npm no longer compiles node-pty during install.
Checked in a stock debian:13 container with Node v26.8.2, npm 11.19.1, and no compiler:
npx t3@latest (0.0.45), @preview, and @nightly all install and run.
npm i -g t3@latest followed by t3 connect works.
A preview or nightly can still briefly show "no T3 Code CLI build" right after a publish. That is tracked in #14409. The ARM64 Exec format error mentioned above is a separate bug. Please open a new issue for it if it still happens.
Activity
juliusmarminge commentedon Sep 14, 2026
Thanks for the report — this is a real install blocker on Linux x64, not a wash of #11556.
What we think is going on
There are two different install shapes on npm right now, and you hit both.
1.
t3@latest(0.0.40) —node-ptymust compilelatestis still the old Node server package (apps/server→node-pty@^1.1.0). That tarball has no Linux prebuilds (darwin/win32 only), sonpx t3@latestalways runs:Your log shows that script running and exiting 1. That is an actual compile/rebuild failure, not npm 12
allow-scriptsskipping the script (the closed #7847 / #7475 / #7576 class).A stock Debian 13 VM usually does not have
g++/make/python3. #11556 confirmed the same[email protected]does build on Node v26.8.2 wheng++is present, so Node 26 itself is probably not the blocker (enginesalready allow>=24.10). We still want thenode-gypstanza to be sure.This is related to #11556 (same missing Linux prebuild) but not a duplicate: that issue is linux-arm64 and dies at server start (
NodePtyModuleLoadError); yours is linux-x64 and dies during install.2.
t3@preview/t3@nightly— launcher cannot see@t3code/t3-linux-x64As of #11607, preview/nightly
t3is only a small launcher. The real CLI is an optional dependency@t3code/t3-linux-x64@<same version>. The message:means
require.resolve("@t3code/t3-linux-x64/package.json")failed. linux-x64 is supported; npm did not leave that optional package on disk.Those platform packages are published for the current tags (
0.0.41-nightly.20260914.1722,0.0.41-preview.20260914.1724, ~206MB,os=linux/cpu=x64). Typical reasons they get dropped: optional-dep install/extract failed (including lifecycle scripts on bundlednode-pty),omit=optional, a stale npx cache, or a nightly from the #11607 rollout that listed the dep before the tarball existed.#10687 (probe native deps before activating updates) is adjacent and does not close this. Default
curl | shcannot savelatestyet: v0.0.40 has no CLI archive.Workaround (Debian VM, no compiler)
Prefer the standalone installer on nightly (needs
curl/taronly; no Node, npm, org++):If you want to stick with
npx t3@latest:Please paste (so we can confirm both paths)
Maintainer follow-up
t3-*-linux-x64.tar.gzsonpx t3@latestand defaultinstall.shno longer compilenode-ptyon Linux.npxactually lands the ~206MB@t3code/t3-*tarball).node-ptythat ships Linux prebuilds (1.2.0-beta.x).lateststill needs a compiler until that stable ships.Accepting as a Linux install bug.
Geczy commentedon Sep 16, 2026
Additional data point from Linux ARM64, likely separate from the original x64 failure:
@t3code/[email protected]installs successfully, and the platform package is present. However, the same native binary behaves differently across two ARM64 hosts:6.8.0-1047-oracle, glibc 2.35:t3 --versionsucceeds.6.12.0-109.67.6.el10uek.aarch64, glibc 2.39: execution fails immediately with:I also downloaded
t3-0.0.41-nightly.20260915.1780-linux-arm64.tar.gzfrom the GitHub release. Itst3binary has the same SHA256, so the installer-first route downloads the same executable and does not avoid this failure.Relevant ELF details:
The older Node-based ARM64 nightly runs on the Oracle Linux host, while a later pre-self-contained nightly crashes on the known missing
node-ptyLinux ARM64 prebuild described in #11556.This seems distinct from the missing optional dependency reported here: npm successfully installs the ARM64 platform package, but the resulting self-contained executable is rejected by the newer kernel. Would you prefer a separate issue for this kernel-specific ARM64 failure?
t3dotgg commentedon Oct 14, 2026
Note
🤖 Claude Opus 5.5 responding on behalf of Theo
Closing as fixed by #11607, first shipped in
[email protected].t3is now a small launcher over per-platform executable packages, so npm no longer compilesnode-ptyduring install.Checked in a stock
debian:13container with Node v26.8.2, npm 11.19.1, and no compiler:npx [email protected]still fails with[email protected] install { code: 1 }, the same error as this report.npx t3@latest(0.0.45),@preview, and@nightlyall install and run.npm i -g t3@latestfollowed byt3 connectworks.A preview or nightly can still briefly show "no T3 Code CLI build" right after a publish. That is tracked in #14409. The ARM64
Exec format errormentioned above is a separate bug. Please open a new issue for it if it still happens.