与gulp.js的EPERM mkdir错误

时间:2015-09-22 12:30:37

标签: javascript angularjs gulp build-automation

我尝试将所有供应商脚本复制到构建目录,以管理员身份运行cmder,但它失败了。请帮我解决这个问题。提前谢谢。

gulp
[17:54:26] Using gulpfile ~\Desktop\crossover\gulpfile.js
[17:54:26] Starting 'default'...
[17:54:26] Starting 'build-all'...
[17:54:26] Starting 'clean'...
[17:54:26] Finished 'clean' after 5.49 ms
[17:54:26] Starting 'copy-assets'...
[17:54:26] Starting 'copy-app-js'...
[17:54:26] Starting 'copy-vendor-js'...
[17:54:26] 'copy-vendor-js' errored after 14 ms
[17:54:26] Error: EPERM, mkdir 'C:\Users\desapm\Desktop\crossover\build\vendor'
    at Error (native)

以下是gulpfile.jsgulp.task中的copy-vendor-js(' copy-vendor-js',

 gulp.task('copy-vendor-js', function() {
      //Copy all Vendor Scripts to Build Folder
    return gulp.src('./vendor/**/*.*')
      .pipe(gulp.dest('./build/vendor'));
  });

0 个答案:

没有答案