Running Claude Code with Deno or Bun rather than Node?

Status Closed — not planned
Maintainer reply None cached
Activity 12 comments · opened Jul 7, 2025 · closed Feb 28, 2026

Which JS engine do you use to run Claude Code? Node? Deno? Bun? Any experiences in using a non-default engine (that is, not Node)?

Node

claude

or

npx "$HOME/.claude/local/node_modules/.bin/claude"

Deno

deno run -A "$HOME/.claude/local/node_modules/.bin/claude"

Bun

bun --bun "$HOME/.claude/local/node_modules/.bin/claude"

View original on GitHub ↗

12 Comments

jazoom · 1 year ago
$ bun add -g @anthropic-ai/claude-code
bun add v1.2.18 (0d4089ea)

installed @anthropic-ai/claude-code@1.0.45 with binaries:
 - claude

[15.00ms] done
$ claude
/usr/bin/env: ‘node’: No such file or directory

...suboptimal
jazoom · 1 year ago

bun --bun "$HOME/.bun/bin/claude" gets it working for me. And it seems to run fine.

trylovetom · 1 year ago

You can try running the Claude Code using one of the following commands:

Option 1: Install globally and run

bun add -g @anthropic-ai/claude-code
bun run --bun claude
````

or

**Option 2: Use bunx to run directly**
```sh
bunx --bun @anthropic-ai/claude-code

Add MCP Server (This works!)
You can add the MCP server using this command:


claude mcp add context7 -- bunx -y @upstash/context7-mcp

Known Issues

  1. Local installation does not work
> /migrate-installer # Inside Claude
# failed
  1. Visual Studio Code Extension cannot detect Claude
  • When using WSL (Windows Subsystem for Linux) with Bun, the Claude extension in VSCode does not recognize the installed Claude.
  • Inside Claude, using the /ide command does not successfully connect to the VSCode either.
jpillora · 1 year ago

this works:

install Deno

curl -fsSL https://deno.land/install.sh | sh

global install Claude code

deno install --global -A npm:@anthropic-ai/claude-code

with ~/.deno/bin in your PATH

claude --version
1.0.65 (Claude Code)
benatkin · 12 months ago

It seems to work except for the autoUpdate message, if you're on deno this message shows and I don't see a way to disable it:

Auto-update failed · Try claude doctor or npm i -g @anthropic-ai/claude-code

And I can disable auto-update with the autoUpdates option but not the message. There seems to have been a way to disable the message with an autoUpdateStatus option but not anymore.

benatkin · 12 months ago

The auto-update message showed because it wasn't on the latest version. After upgrading it went away.

deno install -r -f --global -A npm:@anthropic-ai/claude-code

I'm going to have autoUpdates be disabled. It would be nice if it showed a message saying an update is available and to manually install it rather than saying auto-update failed when this is disabled.

Edit: I had to set autoUpdates to enabled again as the message comes back – even when it's on the latest version. Apparently it's running the command to check for updates and my old version of node that I have in this container is working in that instance. Thinking of making a drop-in partial replacement for npm with deno that doesn't install anything but checks that it's up-to-date and fails if a new version found.

benatkin · 12 months ago

Edit: as I was sending the last message claude code jumped from 1.0.103 to 1.1.105. I can have autoUpdates disabled and the message only shows if there is a newer version available!

github-actions[bot] · 8 months ago

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

include · 8 months ago

After installing with bun - it works but I get a fork in node. Is this normal?

include          79276   0.0  0.0 436360752   2960 s001  S+    5:39PM   0:00.01 bun run --bun claude
include          79277   0.0  0.9 508780752 159008 s001  S+    5:39PM   0:03.38 node /Users/include/.bun/bin/claude
github-actions[bot] · 6 months ago

Closing for now — inactive for too long. Please open a new issue if this is still relevant.

github-actions[bot] · 5 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.