Claude Code for Windows: Setup Guide
Prepare Windows Terminal for Node.js
- official document: 在 Windows 上安裝 PowerShell 7
- Windows Terminal Setting: Windows Terminal as your Default Command Line Experience
- open Windows PowerShell

- check the PowerShell version
$PSVersionTable.PSVersionResult:Major Minor Build Revision
----- ----- ----- --------
5 1 26100 4652 - search the latest version
winget search Microsoft.PowerShellResult:名稱 識別碼 版本 來源
---------------------------------------------------------------
PowerShell Microsoft.PowerShell 7.5.2.0 winget
PowerShell Preview Microsoft.PowerShell.Preview 7.6.0.4 winget - use
idto install PowerShellwinget install --id Microsoft.PowerShell --source wingetResult:
- open PowerShell 7

- check the PowerShell version
$PSVersionTable.PSVersionResult:Major Minor Patch PreReleaseLabel BuildLabel
----- ----- ----- --------------- ----------
7 5 2 - open the setting tab

- select PowerShell and Windows Terminal

- restart PowerShell 7
Install Node.js
- official document: 下載 Node.js®
- open PowerShell 7
- install Node.js
- option A -
winget install OpenJS.NodeJS - option B - download the msi and execute it
- option A -
- check the Node version
node -v(JavaScript runtime environment) Result:v22.18.0 - check the Node Package Manager version
npm -v(Node.js Package Manager) Result:10.9.3
Install Claude Code
- official document: 開始使用 Claude Code
- open PowerShell 7
- install Claude Code
winget install Anthropic.ClaudeCode - cd your-awesome-project
- start
claudeand select a option to login
給已經開始使用 Claude Code 的夥伴OuO
Account
資訊
本機有登入過其他帳號的,可以在claude指令框先 /logout 成功登出後再重新進入claude,就可以設定新帳號了
Upgrage
資訊
在 PowerShell 直接下指令 claude update 就會自動檢查版本並更新了
