0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Claude Code を黒い画面(ターミナル)にインストール方法

0
Posted at

黒い画面で使う必須コマンド4つ

Claude Code(Codex や Antigravity などのバイブコーディングツール)を使うときに、黒い画面で使う下記の4つのコマンドだけは知っておいていただけると!!

    # 現在の場所のパスを確認(Print Working Directory)
    pwd

    # 現在の場所にあるファイルやフォルダの一覧を表示(List)
    ls

    # 階層を移動(Change Directory)
    cd

    # フォルダ作成(Make Directory)
    mkdir

Claude Code をインストールする方法

公式サイト:https://code.claude.com/docs/ja/setup

Macの方

「ターミナル」というアプリを開き、下記コマンドを実行してみよう

    # インストール
    curl -fsSL https://claude.ai/install.sh | bash

    # Claude Code 起動
    claude

    # エラーが出た場合
    echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc && source ~/.zshrc

    # Claude Code もう一度起動
    claude

Windowsの方

「Power Shell」というアプリを開き、下記コマンドを実行してみよう

    # インストール
    irm https://claude.ai/install.ps1 | iex

    # Claude Code 起動
    claude

    # エラーが出た場合(1行ずつ実行してください)
    [Environment]::SetEnvironmentVariable("PATH", "$([Environment]::GetEnvironmentVariable('PATH', 'User'));$env:USERPROFILE\.local\bin", "User")
    $env:PATH = "$env:PATH;$env:USERPROFILE\.local\bin"
    
    # Claude Code もう一度起動
    claude

インストールできない場合

AIに聞いてみよう
https://claude.ai

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?