Windows: 杀毒软件的"PowerShell 脚本执行检测"导致 Claude Code Shell 全部 EPERM

Resolved 💬 2 comments Opened Jun 5, 2026 by Alfalfaaaa Closed Jun 9, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

PowerShell / Bash 所有命令返回 EPERM: operation not permitted, uv_spawn

What Should Happen?

部分杀毒软件(如某某安全厂商终端安全管理系统等)的"PowerShell 脚本执行检测"功能会拦截 Node.js 的
uv_spawn 调用,导致 Claude Code 无法启动任何子进程。
在杀毒软件设置中关闭"PowerShell
脚本执行检测"即可,无需关闭整个杀毒软件或添加白名单。

Error Messages/Logs

● PowerShell(Write-Output "hello")
  ⎿  Error: EPERM: operation not permitted, uv_spawn
     'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe'

Steps to Reproduce

让calude code执行任意指令

Claude Model

Other

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.165

Platform

Other

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗