0
我正尝试在服务器上运行dev环境的gulp构建任务,但其失败。但是,同样的gulp版本正在我的本地机器上运行。下面给出函数和错误。Gulp Build命令失败,出现错误“EISDIR:目录上的非法操作”
功能:
// S3 Upload for dev
gulp.task('s3sync:dev', function() {
var config = {
accessKeyId: "-Key-",
secretAccessKey: "-Key-"
};
var s3 = require('gulp-s3-upload')(config);
return gulp.src("./dist/**")
.pipe(s3({
Bucket: 'faasos-assets/order.faasos.io/dev',
ACL: 'public-read'
}, {
maxRetries: 5
}))
});
命令:
Gulp build:development
错误:
[09:01:04] Starting 's3sync:dev'...
events.js:160
throw er; // Unhandled 'error' event
^
Error: EISDIR: illegal operation on a directory, read
at Error (native)
任何想法?