Gulp EPERM:不允许使用 MSBuild 进行操作

Gulp EPERM: operation not permitted using MSBuild

我正在尝试将我们的构建服务器与我们的 angular 构建集成。在本地构建工作完美,但是当我尝试 运行 在构建服务器上构建时,我收到以下错误:

RunGulp:
Running gulp task dev
  gulp
  [08:35:38] Using gulpfile C:\Builds639\TCC.NET.Development CI\src\TCC.W
 eb.Client\gulpfile.js
 [08:35:38] Starting 'default'...
  [08:35:38] Starting 'build'...
  [08:35:38] Starting 'js'...
  stream.js:74
        throw er; // Unhandled stream error in pipe.
        ^

EXEC : error: EPERM: operation not permitted, open 'C:\Builds639\TCC.NET.
 Development CI\src\TCC.Web.Client\public\app.module.js' [C:\Builds639\TCC.N
ET.Development CI\src\TCC.Web.Client\TCC.Web.Client.csproj]
      at Error(native)
C:\Builds639\TCC.NET.Development CI\src\TCC.Web.Client\TCC.Web.Client.wpp
.targets(14, 5): error MSB3073: The command "gulp" exited with code 1. [C:\Build
s639\TCC.NET.Development CI\src\TCC.Web.Client\TCC.Web.Client.csproj]

我查看了有关错误的各种帖子,它们主要围绕权限问题,但 public 文件夹和 app.module.js 文件具有正确的权限。

我一点也不熟悉 gulp 所以正在寻找一些其他的想法来检查。

我的问题原来是正在构建的文件上的只读标志。

找到解决方案here