anomalyco / anomalyco/opencode
Nix dev shell fails to install dependencies with Node.js 20
Open
@neriousy is already working on this.
Since Sep 4, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
I ran into this while setting up the OpenCode development environment with nix develop. The dev shell currently provides Node.js 20, and with a clean Bun cache, bun install fails during the tree-sitter-powershell postinstall.
Changing nodejs_20 to nodejs_22 in flake.nix makes the same clean install complete successfully.
Plugins
None
OpenCode version
Current dev branch (20a7743876)
Steps to reproduce
Run:
nix develop
bun pm cache rm
bun install
Screenshot and/or share link
Current dev shell (nodejs_20):
> nix develop
> node --version
v20.20.2
> bun install
bun install v1.3.13 (bf2e2cec)
gyp info using node-gyp@13.0.2
gyp info using node@20.20.2 | linux | x64
gyp ERR! configure error
gyp ERR! stack TypeError: webidl.util.markAsUncloneable is not a function
...
gyp ERR! cwd .../tree-sitter-powershell@0.25.10/node_modules/tree-sitter-powershell
gyp ERR! node -v v20.20.2
gyp ERR! node-gyp -v v13.0.2
gyp ERR! not ok
After changing to nodejs_22:
> nix develop
> node --version
v22.22.2
> bun install
bun install v1.3.13 (bf2e2cec)
...
4709 packages installed [71.32s]
Operating System
NixOS 26.11 (Zokor)
Terminal
Wezterm
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.