/Applications, then open it:
⌘Space, type iterm, return. macOS asks if you trust an app that did not come from the
App Store — that question is normal. Type everything below into the window it opens./Applications,然後打開它:按 ⌘Space,輸入 iterm,按 Enter。macOS 會問你要不要信任這個不是從 App Store 來的 App,這很正常。下面的東西都打在它開出來的視窗裡。
pnpm and Codex below,
three of the four projects on Bundles, and the small programs listed on
Skills.pnpm 和 Codex,
Bundles 四個專案裡的三個,以及 Skills 上列的小程式。
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
eval "$(/opt/homebrew/bin/brew shellenv)" in it. Paste that. If you don't, the next
window says brew is command not found.eval "$(/opt/homebrew/bin/brew shellenv)"。把它貼上執行。沒貼的話,下一個視窗會說
brew 是 command not found。
✓ brew --version
claude-code cask also works,
but only updates when you run brew upgrade.)claude-code 這個 cask 也能用,但只有跑 brew upgrade 時才會更新。)
curl -fsSL https://claude.ai/install.sh | bash
✓ claude --version
pmg is like a
bouncer: it checks each package against a list of known-bad ones first. So put it in place
before the Skills script, not after. The second half of the line puts it
in front of npm, npx, pnpm and uv.pmg 就像門口的警衛:每個套件進門前,先跟已知的惡意套件名單比對。所以要在 Skills 的腳本之前裝好,不是之後。這行的後半段會讓它守在 npm、npx、pnpm 和 uv 前面。
brew install safedep/tap/pmg && pmg setup install
✓ pmg setup info Aliases : installed.Aliases : installed。
nvm, not brew install node. The Runtimes table below says why.nvm,不要用 brew install node。原因寫在下面的執行環境表。
curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.8/install.sh | bash
nvm only exists in a new window, not in the one that installed it.nvm 只會出現在新視窗裡,剛剛安裝它的那個視窗還找不到它。
nvm install --lts
nvm,
the thing that installs Node — not Node itself. Until you run it, node is
command not found, and every npx command on this site breaks at the
first step.nvm,也就是「安裝 Node 的工具」,不是 Node 本身。沒跑第二行之前,node 會是
command not found,這個網站上每個 npx 指令都會在第一步就壞掉。
✓ node -v
pnpm builds the projects on Bundles, so get it before you
copy one down. uv gives you uvx, which runs a Python tool without
installing it — that is how YouTube transcripts and yt-dlp work here. Homebrew does
not have uv, so it gets its own line.pnpm 建置的,下載專案前先裝好。
uv 提供 uvx,不用安裝就能跑 Python 工具,這裡的 YouTube 逐字稿和 yt-dlp 都靠它。
Homebrew 沒有 uv,所以它自己一行。
brew install pnpm
curl -LsSf https://astral.sh/uv/install.sh | sh
✓ pnpm -v && uv --version
codex plugin add, and for
gpt-image-2 on Skills, which uses your ChatGPT plan through
this app instead of an API key.codex plugin add 安裝的外掛,以及 Skills 上的 gpt-image-2:它透過這個 App 使用你的 ChatGPT 方案,不用 API 金鑰。
brew install --cask codex
✓ codex --version
brew install --cask lulu
winget asks you to accept its source terms: type Y.winget 會問你是否同意來源條款:輸入 Y。
winget install --id Microsoft.PowerShell --source winget
winget install --id Microsoft.WindowsTerminal -e
✓ $PSVersionTable.PSVersion
winget is the app store for the terminal, and it came with Windows: nothing to
install. Most of the steps after this go through it. Git for Windows does need installing: Claude Code
runs its Bash tool through the Git Bash it brings, and without it falls back to PowerShell.winget 是終端機的 App Store,Windows 本來就有,不用裝。之後大部分的步驟都透過它。
Git for Windows 則要裝:Claude Code 的 Bash 工具靠它附帶的 Git Bash 執行,沒有它就只能退回用 PowerShell。
winget install --id Git.Git -e --source winget
✓ git --version
winget install Anthropic.ClaudeCode
also works, but only updates when you run winget upgrade.)winget install Anthropic.ClaudeCode
也能用,但只有跑 winget upgrade 時才會更新。)
irm https://claude.ai/install.ps1 | iex
✓ claude --version
pmg is like a
bouncer: it checks each package against a list of known-bad ones first. So put it in place before the
Skills script, not after. It is not on winget: on Windows it comes as
an installer, which puts it in front of npm, npx, pnpm and
uv for every user on the PC, so there is no second command.pmg 就像門口的警衛:每個套件進門前,先跟已知的惡意套件名單比對。所以要在 Skills 的腳本之前裝好,不是之後。
winget 沒有它,Windows 上要用安裝檔:它會替這台電腦的每個使用者守在 npm、npx、pnpm 和
uv 前面,所以不用第二個指令。
✓ pmg setup doctor OFF next to a line is an optional feature, not a failure.OFF 是選用功能,不是失敗。
nvm use seems to do nothing and
node -v keeps showing the old one.nvm use 看起來什麼都沒做,node -v 也一直是舊的。
winget install --id CoreyButler.NVMforWindows -e
nvm use asks for admin
rights; say yes.nvm use 會要求管理員權限,按「是」。
nvm install lts
nvm use lts
nvm install only downloads Node; until
nvm use switches to it, node is not recognized, and every
npx command on this site breaks at the first step.nvm install 只是把 Node 下載下來;沒跑 nvm use 切過去之前,node 會找不到,這個網站上每個
npx 指令都會在第一步就壞掉。
✓ node -v
pnpm builds the projects on Bundles, so get it before you
copy one down. On Windows, pnpm's own docs say to install it through Node, because Windows Defender
sometimes blocks the standalone installer. uv gives you uvx, which runs a
Python tool without installing it — that is how YouTube transcripts and yt-dlp work
here.pnpm 建置的,下載專案前先裝好。在 Windows 上,pnpm 自己的文件建議透過 Node 安裝,因為 Windows Defender 有時會擋掉獨立的安裝程式。
uv 提供 uvx,不用安裝就能跑 Python 工具,這裡的 YouTube 逐字稿和 yt-dlp 都靠它。
npx get-pnpm
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
✓ pnpm -v && uv --version
codex plugin add, and for
gpt-image-2 on Skills, which uses your ChatGPT plan through
this app instead of an API key.codex plugin add 安裝的外掛,以及 Skills 上的 gpt-image-2:它透過這個 App 使用你的 ChatGPT 方案,不用 API 金鑰。
powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"
✓ codex --version
| brew Homebrew | pnpm, the Codex app, three of the four projects on Bundles,
and the small programs the skills on Skills use. It is step 2 above.
One catch on Apple Silicon Macs: it lives in /opt/homebrew, and your shell
does not look there yet. Paste the brew shellenv line the installer prints, or the
next window says brew does not exist.pnpm、Codex,
Bundles 四個專案裡的三個,還有 Skills 上的 skill
會用到的小程式。它是上面的第 2 步。
Apple Silicon 的 Mac 有個小陷阱:它裝在 /opt/homebrew,而你的 shell 還不會去那裡找。把安裝程式印出來的 brew shellenv 那一行貼上去,不然下一個視窗會說找不到 brew。 |
| claude | brew install --cask
claude-code also works, but runs about a week behind and only updates on
brew upgrade.
It needs macOS 13 or newer and a paid plan: Pro, Max, Team, Enterprise or a Console account. The free claude.ai plan does not include Claude Code. No command on this page can buy that plan for you. brew install --cask
claude-code 也可以,但版本大約慢一週,而且只有跑 brew upgrade 才會更新。
需要 macOS 13 以上,以及付費方案:Pro、Max、Team、Enterprise 或 Console 帳號。免費的 claude.ai 方案不含 Claude Code。這個方案沒有任何指令能幫你買。 |
| node | nvm install --lts in step 5 above. Anything
here that is not brew is npx, and npx comes with Node. So
without Node, nothing on the other pages runs.
Why nvm and not brew install node? Homebrew keeps one version,
swaps it on every brew upgrade, and ignores a project's .nvmrc. Two
Nodes also leave you guessing which node a script gets.nvm install --lts 安裝。這裡不是用
brew 的,就是用 npx,而 npx 是 Node 附帶的。所以沒有 Node,其他頁面的東西都跑不起來。
為什麼用 nvm,不用 brew install node?Homebrew 只留一個版本、每次
brew upgrade 都會換掉它,而且不管專案的 .nvmrc。裝兩份 Node,你也搞不清楚腳本拿到的是哪個 node。 |
| pnpm | npm install in a pnpm project and you get
slightly different packages — and a build that breaks only on your machine.
brew install pnpm, or
curl -fsSL https://get.pnpm.io/install.sh | sh -pnpm 專案裡改用 npm install,裝到的套件會有點不一樣,之後就會出現只在你電腦上壞掉的建置。
brew install pnpm,或
curl -fsSL https://get.pnpm.io/install.sh | sh - |
| uv | uvx, which runs a Python tool without installing it first. That is how
YouTube videos get read here (uvx --from youtube-transcript-api …,
uvx yt-dlp), so neither tool has to live on your Mac. Install it with
curl -LsSf https://astral.sh/uv/install.sh | sh.uvx,不用先安裝就能直接跑 Python 工具。這裡讀 YouTube 影片就是靠它(uvx --from youtube-transcript-api …、uvx yt-dlp),所以這兩個工具都不必裝在你的 Mac 上。安裝指令:
curl -LsSf https://astral.sh/uv/install.sh | sh。 |
| codex | gpt-image-2 on
Skills. Skip it and those just do not apply; the Claude Code side needs
none of it.
The app is free; signing in is not. It needs ChatGPT Plus or higher, or an API key you pay for per use. gpt-image-2 用。不裝的話,那些就用不了而已;Claude Code 那邊完全不需要它。
程式免費,登入要錢:需要 ChatGPT Plus 以上,或按用量付費的 API 金鑰。 |
| cargo rustup | Install it before the plugins script. Without it those plugins fail with failed to start: No such file or directory, which never says cargo is
missing. The rest still install. Install it with
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh.要在外掛腳本之前裝。沒有它,那些外掛會失敗並顯示 failed to start: No such file or directory,完全不會告訴你缺的是 cargo。其他外掛還是會裝好。安裝指令:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh。 |
| pmg safedep/tap | npm, npx, pnpm, uv,
pip, yarn, poetry and bun. Before they
download anything, it checks the package against SafeDep's list of known-bad ones. It also
waits before trusting a brand-new release, because a hacked one is usually caught fast. These
pages assume five days. Set it up before the Skills script,
which installs from 35 sources at once.
brew install safedep/tap/pmg then pmg setup install, which
writes ~/.pmg.rc and loads it from your shell rc, the file your terminal reads
when it opens (pmg setup remove undoes it, pmg setup doctor checks it).
One gap: it only guards commands you type yourself. A script piped to sh —
including this site's own install.sh — never reads that file, so its
npx calls run unguarded.npm、npx、pnpm、uv、pip、yarn、poetry 和 bun 的警衛。它們要下載任何東西之前,它會先把套件拿去跟 SafeDep 的已知惡意套件名單比對。它也會先等一陣子,才信任剛發布的新版本,因為被駭的版本通常很快就會被抓到。這些頁面假設等五天。要在 Skills 腳本之前設定好,因為那個腳本會一次從 35 個來源安裝。brew install safedep/tap/pmg 然後 pmg setup install,它會寫入
~/.pmg.rc,並從你的 shell rc(終端機開啟時會讀的那個檔案)載入它(pmg setup remove 可以還原,pmg setup doctor 可以檢查)。有一個缺口:它只守你自己打的指令。用管線交給 sh 執行的腳本,包括這個網站自己的 install.sh,不會讀那個檔案,所以裡面的
npx 指令沒有人守。 |
| LuLu | pmg decides what lands on your Mac; LuLu decides what the
programs already there may talk to. The firewall macOS comes with only watches what comes
in, not what goes out. LuLu asks about each program the first time and
remembers your answer.
brew install --cask lulu is step 8 above, the optional one, and last on
purpose: it asks about every program, so installing it earlier means answering popups about
Homebrew for the rest of the install. Allow the system extension and the network filter in
System Settings — it does nothing until macOS lets it. Free and open source, from
Objective-See; macOS 10.15 or newer.
The price: the first week brings a popup for every updater and usage-reporting ping on your Mac, and an agent mid-task waits until you answer. Say no to something it needed and you get a network error, far from the choice that caused it. pmg 決定什麼東西能進到你的 Mac;LuLu 決定已經在裡面的程式可以連去哪裡。macOS 內建的防火牆只管進來的連線,不管出去的。LuLu 會在每個程式第一次連線時問你,然後記住你的答案。brew install --cask lulu 是上面的第 8 步,可以跳過的那一步,而且故意放最後:它會問每一個程式,太早裝的話,安裝剩下的時間你都在回答 Homebrew 的彈出視窗。到「系統設定」允許系統延伸功能和網路過濾器,macOS 放行之前它什麼都不做。免費、開源,作者是 Objective-See;需要 macOS 10.15 以上。代價是:第一週,你 Mac 上每個更新程式和用量回報都會跳出視窗,agent 做到一半也會停下來等你回答。要是你對它需要的東西按了拒絕,之後就會跳出網路錯誤,而且錯誤出現的地方,離當初那個選擇很遠。 |