升级Windows Claude Code CLI

提示:

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

PS C:\WINDOWS\system32> winget upgrade Anthropic.ClaudeCode
Found Claude Code [Anthropic.ClaudeCode] Version 2.1.248
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://downloads.claude.ai/claude-code-releases/2.1.248/win32-x64/claude.exe
  ██████████████████████████████   216 MB /  216 MB
Successfully verified installer hash
Starting package install...
An unexpected error occurred while executing the command:
remove: Access is denied.: "C:\Users\gao\AppData\Local\Microsoft\WinGet\Packages\Anthropic.ClaudeCode_Microsoft.Winget.Source_8wekyb3d8bbwe\claude.exe"
Installer failed with exit code: 0x8a150003 : Executing command failed
PS C:\WINDOWS\system32>

解决:

关闭Claude进程,可以重启解决。

你现在最可能只需要:关闭 Claude Code → 管理员 PowerShell 重跑 winget

 

作者: 高志远

高志远,24岁,男生

发表评论

邮箱地址不会被公开。