首页 > 解决方案 > 尝试在 Visual Studio Code 上保存/创建文件时出现“NoPermissions (FileSystemError): Error: EPERM: operation not allowed”

问题描述

我将“mynewfolder”上传到 Visual Studio Code,但是当我执行“新建文件”并在其下写入“index.html”时,我收到以下消息:

无法写入文件(NoPermissions (FileSystemError): Error: EPERM: operation not allowed, open 'c:\Users\Projects\MyFirstPage\index.html')

我尝试了几次,仍然收到相同的错误消息。

在此处输入图像描述

谁能告诉我发生了什么事?

标签: windowsvisual-studio-codepermissions

解决方案


我也遇到这个问题,现在问题已经解决了。请重新启动您的 PC 并以管理员身份运行您的 VSCODE。


推荐阅读