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] npm global prefix points at off-PATH Nix store — npm install -g silently invisible #728
In the Nix-built image, npm's global prefix is the Node nix-store path (/nix/store/...-nodejs-slim-<ver>), and that prefix's bin/ directory is not on PATH (PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin).
As a result, npm install -g <tool> reports success but the installed binary is invisible — it lands in /nix/store/.../bin/<tool>, which nothing on PATH can see.
npm config get prefix → /nix/store/...-nodejs-slim-24.16.0; ls $(npm config get prefix)/bin shows tsx, but that dir is not on PATH.
Expected Behavior
Globally-installed npm CLIs are on PATH and runnable, and the global prefix is a writable, non-store location.
Actual Behavior
Global install "succeeds" silently into an off-PATH (and store-managed) location; the tool is unusable. This bit commit-action's post-create.sh (npm install -g tsx), which only appeared to work because it swallows errors.
Environment
OS: NixOS (host)
Container Runtime: Podman 5.8.2
Image Version/Tag: dev (built from feature/625-nix-claude-migration)
Architecture: AMD64
Additional Context
Found live-testing the migration vs commit-action (#625 / #634).
Possible Solution
Set a sane, writable global npm prefix that is on PATH (e.g. npm config set prefix /usr/local baked into the image, with /usr/local/bin already on PATH), or document for consumers: prefer npx / local devDeps over npm install -g.
Activity
chore(changelog): merge feature branch, resolve CHANGELOG conflict
fix(image): bake writable on-PATH npm global prefix (#734)
chore(changelog): re-sync workspace CHANGELOG mirror
c-vigo commentedon Jun 30, 2026
Resolved by #734 (c984c29) on the Nix-migration branch (epic #625, PR #670). Closing as part of post-merge backlog hygiene (#677).
docs(rfc): record uv2nix/pyproject-nix evaluation and decision (#788)
chore: release 0.4.0 (#195)
chore: release 0.4.0 (#813)