[태그:] Windows

  • How to Install Claude Code in Windows PowerShell: From First Setup to First Run

    How to Install Claude Code in Windows PowerShell: From First Setup to First Run

    If you are installing Claude Code on Windows for the first time, starting from PowerShell is the simplest path. The essentials are three steps: first confirm that you are in PowerShell, run the official installation command, then finish login and a launch test with the `claude` command.

    Explanatory image showing the Claude Code installation flow in Windows PowerShell
    Image: created by Thinknote, summary of the Claude Code PowerShell installation flow

    This article is based on Windows PowerShell. Commands may differ in CMD, and WSL, macOS and Linux installation methods use separate commands.

    First Check: Are You in PowerShell or CMD?

    The most common mistake is running PowerShell commands in CMD, or CMD commands in PowerShell. If the prompt starts with PS C:\, you are in PowerShell. If you only see C:\, it is likely CMD.

    SituationMeaningWhat to do
    The prompt starts with PS C:\You are using PowerShellFollow the commands in this article as written.
    The prompt starts with C:\You are probably using CMDOpen PowerShell from the Start menu, or choose a PowerShell tab in Windows Terminal.
    You are using Windows TerminalMultiple shells may be availableCheck the tab name and select PowerShell before running the installation command.

    Step 1: Check Whether You Need Node.js

    According to Anthropic’s official documentation, Claude Code can be used on Windows 10 1809 or later, or Windows Server 2019 or later. Installation methods broadly include the official native installation and npm installation. For beginners, it is easier to use the official PowerShell installation command first. The npm method can be used as an alternative in an environment with Node.js 22 or later.

    node --version
    npm --version

    If the commands above show version numbers, Node.js and npm are installed. If not, you can install Node.js LTS with WinGet as shown below. However, if you use the official native installation command, you do not necessarily have to install Node.js first.

    winget install OpenJS.NodeJS.LTS

    Step 2: Install Claude Code in PowerShell

    In Windows PowerShell, use Anthropic’s official quick installation command. Open PowerShell and run the command below.

    irm https://claude.ai/install.ps1 | iex

    If you are concerned about security, you can view the installation script before executing it directly. Even in this case, it is important to develop the habit of confirming that the source is the official domain.

    irm https://claude.ai/install.ps1

    Step 3: Verify the Installation

    When installation is complete, open a new PowerShell window and check the version. The official documentation says that a normal installation displays Claude Code together with a version number.

    claude --version

    For a more detailed check, run the diagnostic command. This command does not start a session; it checks installation status and configuration issues in read-only mode.

    claude doctor

    Step 4: Sign In and Start Your First Session

    Claude Code cannot be used with only the free Claude.ai plan. According to the official documentation, it requires a Pro, Max, Team, Enterprise or Console account. After installation, running the command below opens the browser login flow.

    claude

    If you want to use API-based billing, you can choose Console account authentication. Advanced users who already use API key environment variables may have a different authentication method, but the principle is that key values should never be written directly into a blog post or code repository.

    claude auth login --console
    claude auth status --text

    Step 5: Run It from a Project Folder

    Claude Code is not a tool that simply opens a chatbot. It is a coding agent that reads the code and files in the current folder, modifies them when necessary, and runs commands. So it is best to move into the project folder you want to work on before running it.

    cd C:\Users\me\Workspace\my-project
    claude

    On first launch, you may see a prompt asking whether you trust the folder. Approve only projects you created yourself or repositories you can trust. For unfamiliar folders, downloaded archives or code of unclear origin, it is safer to inspect the contents first.

    Alternative: Installing with npm

    If you already use Node.js 22 or later, global npm installation is also possible. According to the official documentation, the npm package downloads and links the native binary for each platform.

    npm install -g @anthropic-ai/claude-code
    claude --version
    Installation methodRecommended forNotes
    Official PowerShell installationWindows users installing for the first timeThe command is short and close to the official Windows quick installation flow.
    npm installationDevelopers already using Node.js 22 or laterConvenient for people who manage an existing Node/npm environment.
    WSL, macOS or Linux installationUsers working outside native Windows PowerShellUse the separate commands and setup flow for that environment.

    Common Errors and Fixes

    Error or symptomPossible causeFix
    irm not foundA PowerShell command was run in CMDOpen PowerShell and run it again.
    &&-related errorA CMD-style command was run in PowerShellDistinguish PowerShell commands from CMD commands.
    claude not recognized after installationPATH has not refreshed or installation did not completeOpen a new PowerShell window, then run claude --version and claude doctor.
    Login does not proceedAccount plan, browser or network issueConfirm your account type, default browser and network access, then try again.

    Recommended Commands for the First Run

    After installation, it is better to start with a small request asking Claude Code to explain the current project rather than immediately assigning a large task. This lets you see how Claude Code reads the repository structure.

    claude
    
    # Enter inside Claude Code
    Briefly explain this project structure.
    If there are runnable test or build commands, tell me those too.

    Related Articles

    FAQ

    What is the command to install Claude Code in Windows PowerShell?

    The official quick installation command is irm https://claude.ai/install.ps1 | iex. It must be run in PowerShell, and CMD requires different commands.

    Is Node.js required to install Claude Code?

    If you use the official native installation, you do not have to install Node.js first. However, installing with npm requires an environment with Node.js 22 or later.

    Can Claude Code be used with a free Claude account?

    According to the official documentation, Claude Code requires a Pro, Max, Team, Enterprise or Console account. It cannot be used with only the free Claude.ai plan.

    What command should I check first after installation?

    Check the version with claude --version, and if there is a problem, inspect the installation status with claude doctor.

    Why should I run it from a project folder?

    Claude Code works based on the files and code structure in the current folder. Move to the desired project folder and run claude to reduce the chance of reading the wrong folder.

    References

    In short, on Windows you can open PowerShell, run the official installation command, and then check in the order claude --version, claude doctor and claude. What matters more than installation itself is execution location and permissions. Start in a trusted project folder, and never leave API keys or account information directly in code.

    Original Korean Article

    This article is a full-fidelity English translation draft of the original Korean post: Claude Code PowerShell installation Korean article on Thinknote.

  • How to Install Android OS Dual Boot on a Samsung Laptop: A Safe Setup Guide for Using It Alongside Windows

    How to Install Android OS Dual Boot on a Samsung Laptop: A Safe Setup Guide for Using It Alongside Windows

    Image showing the concept of Windows and Android dual boot split across a laptop screen on a bright desk
    For Android OS dual boot, backup and confirming the boot method before installation are the most important steps.

    When using a Samsung laptop, there are times when you want to keep Windows as it is while running Android apps directly on the laptop screen. One option for that is Android OS dual boot.

    Dual boot means choosing, when you turn on the computer, whether to enter Windows or Android OS. However, if you select the wrong partition during installation, Windows data can be damaged. For that reason, this article focuses on the safe preparation and installation flow for Samsung laptops.

    This article is written for recent Samsung laptops that boot in UEFI mode, such as the Samsung Galaxy Book and Samsung Notebook series. BIOS screen names may differ slightly depending on the model.

    What You Must Know Before Installation

    When installing Android OS on a laptop, the following distributions are commonly used.

    • Bliss OS: an Android-based OS for PC installation
    • Android-x86: an open-source project for running Android on x86 PCs
    • PrimeOS: an Android-based OS emphasizing gaming and desktop usability

    If you are a beginner, choosing either Bliss OS or Android-x86 first is a reasonable path. Samsung laptops may differ by model in Wi-Fi, touchpad and sound compatibility, so it is best to run a live USB test before installation.

    What You Need

    ItemDescription
    Samsung laptopAssumes Windows is already installed
    USB flash drive8GB or larger recommended
    Android OS ISO fileBliss OS or Android-x86 ISO
    Rufus or balenaEtcherTool for creating a bootable USB
    Backup storageExternal SSD, USB drive, cloud storage, etc.
    BitLocker recovery keyRequired if Windows device encryption is enabled

    Before installation, be sure to back up important files. Dual-boot installation involves partitions, and mistakes can be difficult to recover from.

    The Full Installation Flow at a Glance

    Image showing the Android OS dual boot installation flow from backup to USB boot, partitioning and boot menu
    The full process is easiest to understand as backup, bootable USB, installation space and boot menu confirmation.

    The installation flow may look complicated, but in practice it follows this order.

    1. Back up Windows data
    2. Download the Android OS ISO
    3. Create a bootable USB
    4. Secure Android installation space in Windows
    5. Set USB boot in Samsung BIOS/UEFI
    6. Install Android OS
    7. Confirm Windows and Android selection in the boot menu

    Step 1: Check Whether Your Laptop Uses UEFI

    Most recent Samsung laptops use UEFI. You can check in Windows with the following command.

    msinfo32

    When the System Information window opens, check the BIOS Mode item.

    • If it displays UEFI, you can proceed with the method in this article.
    • If it displays Legacy, the installation method may differ.

    If you want to check with a command, you can use the following in PowerShell.

    Get-ComputerInfo | Select-Object BiosFirmwareType

    Step 2: Back Up Windows and Check BitLocker

    Some Samsung laptops may have Windows device encryption or BitLocker enabled. If you change boot settings in this state, Windows may ask for the recovery key.

    Open PowerShell as administrator and run the following command.

    manage-bde -status

    If BitLocker is enabled, check the recovery key in your Microsoft account or suspend protection before installation.

    manage-bde -protectors -disable C:

    You can enable protection again after installation is complete.

    manage-bde -protectors -enable C:

    Step 3: Download the Android OS ISO

    Download the ISO file for the Android-based OS you want.

    • Bliss OS: an Android distribution for PC installation
    • Android-x86: a lightweight and basic Android PC version
    • PrimeOS: focused on gaming and desktop usability

    After downloading, it is best to verify the checksum to make sure the file is not corrupted. In Windows PowerShell, use the following command.

    Get-FileHash .ndroid-os.iso -Algorithm SHA256

    On Linux or WSL, you can check it as follows.

    sha256sum android-os.iso

    If it matches the SHA256 value provided on the official download page, the file is normal.

    Step 4: Create a Bootable USB

    On Windows, Rufus is commonly used.

    Example Rufus settings are as follows.

    ItemRecommended setting
    Boot selectionDownloaded Android OS ISO
    Partition schemeGPT
    Target systemUEFI
    File systemFAT32 or NTFS
    Write modeISO image mode recommended

    Creating the USB will erase the files inside it. Move any needed files elsewhere first.

    Step 5: Create Space for Android Installation

    Bright disk partition image with Windows, Android installation space and free space divided into colored blocks
    Before touching the Windows partition, make a backup and secure separate free space for Android installation.

    You need to create separate space for Android OS in Windows. Usually, 32GB or more is recommended, and 64GB or more is better if you have room.

    Proceed in Windows Disk Management.

    1. Press Win + X.
    2. Open Disk Management.
    3. Right-click the C: drive.
    4. Select Shrink Volume.
    5. Enter the capacity to use for Android OS.
    6. Leave the space created after shrinking as unallocated.

    The important point is not to delete the Windows partition, EFI partition or Recovery partition. Android OS should be installed only in the newly secured empty space.

    Step 6: Enter BIOS/UEFI on a Samsung Laptop

    Samsung laptops usually use the following keys immediately after power-on.

    FunctionCommon key
    Enter BIOS/UEFI setupF2
    Boot device selection menuF10 or Esc

    It may vary by model. When the Samsung logo appears right after turning on the power, press the key repeatedly to enter.

    The BIOS items to check are as follows.

    ItemRecommended setting
    Boot ModeUEFI
    Secure BootDisabled if needed
    Fast BIOS ModeDisabled if the USB does not appear
    USB BootEnabled

    If the Android OS installation USB does not appear, check Secure Boot and Fast BIOS Mode settings.

    Step 7: Boot from USB and Test Live Mode First

    Before installing immediately, if possible, first run it in Live Mode or Try without installing mode.

    Check the following items.

    • Does Wi-Fi connect?
    • Does the touchpad work?
    • Is keyboard input normal?
    • Can you adjust screen brightness?
    • Does sound play?

    Some devices may not work immediately depending on the Samsung laptop model. Wi-Fi and sound in particular differ by distribution version.

    Step 8: Install Android OS

    On Android-x86-family installation screens, the typical flow is as follows.

    1. Select Installation or Install Android-x86 to harddisk
    2. Select the Android installation partition
    3. Select the file system
    4. Choose whether to install the GRUB bootloader
    5. Reboot after installation completes

    You need to be most careful on the partition selection screen.

    Examples of partitions you must never select
    - EFI System Partition
    - The C: partition where Windows is installed
    - Recovery partition
    
    Partition you should select
    - The newly created empty space or new partition dedicated to Android

    The file system is usually one of the following.

    File systemCharacteristics
    ext4A safe choice for Android installation
    ntfsFor compatibility in some environments
    fat32May be unsuitable for large installations

    In general, ext4 is recommended.

    Step 9: Configure the GRUB Bootloader

    During installation, you may be asked whether to install GRUB. A bootloader is required for dual booting.

    In most cases, choose as follows.

    Install GRUB bootloader? → Yes
    Make system directory read-write? → Optional

    However, because you need to keep the Windows boot entry, after installation you should check that Windows Boot Manager has not disappeared from the BIOS boot order.

    Step 10: Reboot and Check the Boot Menu

    When installation is complete, remove the USB and reboot. If everything is normal, you should be able to choose Android OS and Windows from the boot menu.

    If it boots directly only into Android or only into Windows, check the boot order in Samsung BIOS.

    After entering BIOS, check the following item.

    Boot Priority
    1. Android or GRUB-related item
    2. Windows Boot Manager

    If you want to return to Windows, move Windows Boot Manager to first priority.

    Common Problems and Fixes

    When the USB Boot Entry Does Not Appear

    Check the following.

    - Check whether the USB was created properly
    - Enable USB Boot in BIOS
    - Disable Fast BIOS Mode
    - Disable Secure Boot
    - Recreate it in Rufus using GPT / UEFI mode

    When Windows Does Not Appear After Installation

    Do not panic; check whether Windows Boot Manager exists in BIOS. If you did not delete the Windows partition, it is usually a boot-entry issue.

    If you have a Windows installation USB or recovery environment, you can recover the boot entry with the following command.

    bcdboot C:\Windows /f UEFI

    However, if Windows is assigned a different drive letter, it may not be C:. In the recovery environment, check the drive letter first.

    diskpart
    list volume
    exit

    When Wi-Fi Does Not Work

    Android OS may not immediately support the laptop’s wireless LAN chipset. In this case, try the following methods.

    - Test another Android OS distribution version
    - Use USB tethering
    - Use a USB Wi-Fi dongle
    - Use an ISO with a newer kernel version

    When the Screen Freezes Black

    Some graphics environments may require a boot option. On the GRUB screen, edit the boot entry and try adding the following option.

    nomodeset

    An example is shown below.

    linux /kernel root=/dev/ram0 androidboot.selinux=permissive quiet nomodeset

    Basic Settings Checklist After Installation

    After booting into Android OS, check the following settings.

    • Whether you are signed in to a Google account
    • Wi-Fi connection
    • Korean keyboard settings
    • Screen resolution
    • Sound output
    • Sleep mode
    • Touchpad sensitivity
    • Whether the Play Store is available
    • Whether the Windows boot entry is preserved

    For Korean input, it is convenient to add a keyboard in Android settings or install Gboard.

    If You Want to Remove It and Use Only Windows Again

    To delete Android OS and use only Windows, proceed as follows.

    1. Boot into Windows.
    2. Delete the Android partition in Disk Management.
    3. Extend the Windows partition.
    4. Set Windows Boot Manager as the first priority in BIOS.

    If the Windows boot entry becomes tangled, you can use the following command in the recovery environment.

    bcdboot C:\Windows /f UEFI

    Things to Be Especially Careful About on Samsung Laptops

    Samsung laptops have slightly different BIOS menu names depending on the model. But the core points are the same.

    • Enter BIOS setup with F2.
    • If the USB does not appear, turn off Fast BIOS Mode.
    • If Secure Boot blocks booting, temporarily disable it.
    • Do not delete Windows Boot Manager.
    • Install Android on a separate partition.

    Especially if it is a work laptop, company security policies, BitLocker or device encryption may be enabled. In that case, you must check with the administrator before installing dual boot personally.

    Wrap-Up

    The core of installing Android OS as dual boot on a Samsung laptop is not difficult. What matters is the preparation before pressing the install button.

    To summarize, the following three points are most important.

    1. Back up Windows data and the recovery key first.
    2. Create a separate Android-only partition.
    3. Check USB boot and boot order in Samsung BIOS.

    If you want to use Android apps directly on a laptop, dual boot is a fairly attractive method. However, compatibility differs by model, so it is safest to first check Wi-Fi, touchpad and sound with a live USB before installation.

    FAQ

    If I Install Android OS on a Samsung Laptop, Will Windows Be Deleted?

    If you install Android OS on a separate partition, Windows is not deleted. However, if you choose the wrong Windows partition during installation, data may be damaged, so you must be careful during the partition selection step.

    Can Dual Boot Be Installed on a Samsung Galaxy Book?

    Many models can support it, but Wi-Fi, sound and touchpad compatibility differ depending on the model and Android OS distribution. It is best to test first with a live USB before installation.

    Do I Have to Turn Off Secure Boot?

    It depends on the Android OS distribution and laptop settings. If USB boot is blocked or you cannot enter the installation screen, you can try temporarily disabling Secure Boot.

    Can I Run Only Android Apps in Windows Instead of Installing Android OS?

    Yes. If dual boot feels burdensome, it may be safer to first consider an Android emulator, an Android app runtime for Windows, or a cloud-based app player.

    How Do I Go Back to Using Only Windows After Installation?

    Boot into Windows, delete the Android partition in Disk Management, and extend the Windows partition. After that, set Windows Boot Manager as the first priority in BIOS.

    Related Articles

    ## Original Korean Article This article is a full-fidelity English translation draft of the original Korean post: Samsung laptop Android OS dual boot Korean article on Thinknote.