[
    {
        "role": "user",
        "content": "what%20is%20recommended%20installation%20method%20for%20claude%20code%20on%20debian%2012%3F"
    },
    {
        "role": "assistant",
        "content": "If you want to install Claude Code on Debian 12, here\u2019s the recommended method and important details to get it set up safely and efficiently.\n\n---\n\n## \u2705 System Requirements and Supported Platforms\n\nBefore installing, make sure your system meets these prerequisites:\n\n- Debian version 10 or newer \u2014 so Debian 12 is fully supported. ([code.claude.com](https://code.claude.com/docs/en/setup?utm_source=openai))  \n- At least **4 GB of RAM** and an x64 or ARM64 processor. ([code.claude.com](https://code.claude.com/docs/en/setup?utm_source=openai))  \n- A stable internet connection. ([code.claude.com](https://code.claude.com/docs/en/setup?utm_source=openai))  \n\nAdditional dependencies depend on how you install (see below). For native installer, you don\u2019t need Node.js; for npm install, you\u2019ll need Node.js 18 or higher. ([code.claude.com](https://code.claude.com/docs/en/setup?utm_source=openai))  \n\n---\n\n## \u2139\ufe0f Why Use the Native Installer (Recommended)\n\n- It **doesn't require Node.js/npm** to be already installed. ([nxcode.io](https://www.nxcode.io/resources/news/install-claude-code-setup-guide-2026?utm_source=openai))  \n- It provides **automatic updates in the background**. ([code.claude.com](https://code.claude.com/docs/en/setup?utm_source=openai))  \n- It's the version tested most heavily by Anthropic. ([nxcode.io](https://www.nxcode.io/resources/news/install-claude-code-setup-guide-2026?utm_source=openai))  \n\nIn contrast, the npm-based installation is still supported, but it has drawbacks: potential permission problems, dependency on Node.js version, and manual update process. ([nxcode.io](https://www.nxcode.io/resources/news/install-claude-code-setup-guide-2026?utm_source=openai))  \n\n---\n\n## \ud83d\udd27 Installation Directions for Debian 12\n\nHere\u2019s how to install Claude Code using the native installer on Debian 12:\n\n1. Open a terminal.\n\n2. Run the install script:\n   ```bash\n   curl -fsSL https://claude.ai/install.sh | bash\n   ```\n\n   This script downloads the Claude Code binary and installs it into your PATH. ([code.claude.com](https://code.claude.com/docs/en/setup?utm_source=openai))  \n\n3. (Optional) If you want to install a **stable** version instead of the default \u201clatest,\u201d append `stable`:\n   ```bash\n   curl -fsSL https://claude.ai/install.sh | bash -s stable\n   ```\n\n4. After installation, you should be able to use:\n   ```bash\n   claude --version\n   ```\n\n   To verify it installed correctly. ([nxcode.io](https://www.nxcode.io/resources/news/install-claude-code-setup-guide-2026?utm_source=openai))  \n\n---\n\n## \u26a0\ufe0f Alternate Method: npm\n\nIf, for some reason, you want or need to use npm (Node package manager), here are the steps:\n\n- Ensure you have **Node.js version 18+** installed. ([institute.sfeir.com](https://institute.sfeir.com/en/claude-code/claude-code-installation-and-first-launch/tutorial/?utm_source=openai))  \n- Install globally (but avoid using `sudo` with npm to prevent permission issues):\n  ```bash\n  npm install -g @anthropic-ai/claude-code\n  ```\n\n- Make sure the npm global bin directory is in your PATH. Sometimes `~/.npm-global/bin` or similar. ([claudeinsider.com](https://www.claudeinsider.com/docs/getting-started/installation?utm_source=openai))  \n\nThis method grants more control (e.g. version pinning), but lacks the auto-update and simplicity of the native binary. ([nxcode.io](https://www.nxcode.io/resources/news/install-claude-code-setup-guide-2026?utm_source=openai))  \n\n---\n\n## \ud83d\udd10 Security Tips\n\n- **Only download the installer from official sources**. Specifically `claude.ai/install.sh` for Linux, or through the Claude Code docs at code.claude.com. ([blog.laozhang.ai](https://blog.laozhang.ai/en/posts/claude-code-install/?utm_source=openai))  \n- Beware of fake/malicious pages mimicking \u201cinstall Claude Code\u201d that show up through search ads. There have been active malware campaigns targeting users. ([blog.laozhang.ai](https://blog.laozhang.ai/en/posts/claude-code-install/?utm_source=openai))  \n- After installation, verify the binary\u2019s location and version using `claude --version` and `which claude`. If something looks wrong, uninstall and reinstall from trusted sources. ([blog.laozhang.ai](https://blog.laozhang.ai/en/posts/claude-code-install/?utm_source=openai))  \n\n---\n\nIf you want, I can walk you through the full setup (configuring tools, permissions, etc.) after installation. Want me to guide you through that?"
    }
]