问题描述
当升级vscode时出现下方报错:
There was an error while marking a file for deletion:
Failed to mark file for deletion:拒绝访问.
Please verify there are no Visual Studio Code processes still executing
Failed to install Visual Studio Code update.
Updates may fail due to anti-virus software and/or runaway processes.
Please try restarting your machine before attempting to update again.
Please read the log file for more information:
分析
根据报错我们可以知道 vscode 与 杀毒软件 发生冲突 (due to anti-virus software and/or runaway processes)
解决方法
1 关闭杀毒软件重新安装vscode


2 将vscode文件夹添加到信任区(不同杀毒软件操作不同)

3在杀毒软件自带的软件管家下载vscode

问题解决

本文针对VSCode更新过程中出现的错误进行了分析,并提供了详细的解决步骤。主要包括关闭杀毒软件、添加VSCode到信任区及使用杀毒软件自带的软件管家进行安装等方法。
2505

被折叠的 条评论
为什么被折叠?



