The ripgrep.node files must be preserved?
Probably yes (at least for all Linux targets you want to support). I assume it is native module calling rg.
rg --help might useful to check compability.
| Git Clone URL: | https://aur.archlinux.org/claude-code.git (read-only, click to copy) |
|---|---|
| Package Base: | claude-code |
| Description: | An agentic coding tool that lives in your terminal |
| Upstream URL: | https://github.com/anthropics/claude-code |
| Keywords: | agent ai anthropic llm |
| Licenses: | LicenseRef-claude-code |
| Submitter: | cg505 |
| Maintainer: | cg505 (ticpu) |
| Last Packager: | ticpu |
| Votes: | 20 |
| Popularity: | 3.86 |
| First Submitted: | 2025-02-24 19:35 (UTC) |
| Last Updated: | 2025-10-27 21:32 (UTC) |
The ripgrep.node files must be preserved?
Probably yes (at least for all Linux targets you want to support). I assume it is native module calling rg.
rg --help might useful to check compability.
Theoretically this seems good to me, but we need to figure out how these binaries are used and whether the symlinks will work as expected. Slightly difficult because the js is minified but we can just try some things. I don't have time to test it right now but @oech3 @ticpu if you have a tested and working patch we can definitely adopt it.
.nodefor x64 cannot be removed.
@oech3 what do you mean by this? The ripgrep.node files must be preserved? I'm not sure what these binaries are actually.
.node for x64 cannot be removed.
@oech3, from my point of view, this would make sense and remove 54MB of binaries from the package + using an open-source version instead of a binary blob.
So we'd be replacing both Linux binaries (arm64-linux and x64-linux) with a symlink from the system's one + moving ripgrep from optdepends to depends.
What do you think @cg505 ?
ln -sf /usr/bin/rg "$pkgdir"/usr/lib/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/x64-linux/rg
Can I request to be Co-Maintainer to help with version bumps?
⚠️ UPDATED: When you start claude, it will try to enable automatic updates. DO NOT manually fix permissions on the current npm prefix. To disable the message, run claude config set -g autoUpdates disabled. autoUpdates - NOT autoUpdaterStatus.
Note that IDE integration with VS Code stopped working for me in all versions after 1.0.27. Downgrading this package to that version restored that functionality.
@cg505 I downgraded to node 23.11.0 via mise, and the binary runs as expected. Thanks.
Pinned Comments
xpos587 commented on 2025-07-02 13:11 (UTC) (edited on 2025-07-02 13:12 (UTC) by xpos587)
⚠️
UPDATED:When you start claude, it will try to enable automatic updates. DO NOT manually fix permissions on the current npm prefix. To disable the message, runclaude config set -g autoUpdates disabled. autoUpdates - NOT autoUpdaterStatus.