claude code 다른 오류
This commit is contained in:
1 parent
8a422fe761
commit
f883330a45
1 file changed
+19
-5
+19
-5
@@ -44,18 +44,32 @@ function Main {
|
||||
Write-Info "===== Claude Code install script (Windows PowerShell) ====="
|
||||
Write-Info "Installing Claude Code (command-line AI assistant) natively..."
|
||||
|
||||
try {
|
||||
Write-Info "Fetching and executing official installer from: https://claude.ai/install.ps1"
|
||||
$tmpDir = Join-Path $env:TEMP "claude_install_$(Get-Random)"
|
||||
New-Item -ItemType Directory -Path $tmpDir -Force | Out-Null
|
||||
$scriptPath = Join-Path $tmpDir "bootstrap.ps1"
|
||||
|
||||
# Anthropic 공식 설치 ps1 스크립트를 다운로드 및 메모리 상에서 직접 호출 가동
|
||||
$installerScript = Invoke-RestMethod -Uri "https://claude.ai/install.ps1" -UseBasicParsing
|
||||
Invoke-Expression $installerScript
|
||||
try {
|
||||
Write-Info "Downloading official installer from: https://downloads.claude.ai/claude-code-releases/bootstrap.ps1"
|
||||
$ProgressPreference = 'SilentlyContinue'
|
||||
Invoke-WebRequest -Uri "https://downloads.claude.ai/claude-code-releases/bootstrap.ps1" -OutFile $scriptPath -UseBasicParsing
|
||||
$ProgressPreference = 'Continue'
|
||||
|
||||
if (-not (Test-Path $scriptPath)) {
|
||||
Write-Err "Failed to download official Claude Code bootstrap installer."
|
||||
}
|
||||
|
||||
Write-Info "Executing official Claude Code installer..."
|
||||
& $scriptPath
|
||||
|
||||
Write-Success "Claude Code has been successfully installed!"
|
||||
Write-Info "Please restart your terminal window or refresh your PATH environment variable."
|
||||
Write-Info "Run command: claude"
|
||||
} catch {
|
||||
Write-Err "Failed to install Claude Code: $_"
|
||||
} finally {
|
||||
if (Test-Path $tmpDir) {
|
||||
Remove-Item -Path $tmpDir -Recurse -Force -ErrorAction SilentlyContinue
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user