Claude code报错error writing file

windows下的bug,在 claude.md中添加提示词:

There’s a file modification bug in Claude Code. The workaround is: always use complete absolute Windows paths with drive letters and backslashes for ALL file operations. Apply this rule going forward, not just for this file.

具体参考这个,里面也有其他老哥给的提示词模板: