Gulp Build命令失败,错误为“;EISDIR:目录上的非法操作";
我正试图在服务器上为dev环境运行gulpbuild任务,但失败了。然而,相同的gulp构建正在我的本地机器上运行。下面给出了函数和错误 功能:Gulp Build命令失败,错误为“;EISDIR:目录上的非法操作";,gulp,Gulp,我正试图在服务器上为dev环境运行gulpbuild任务,但失败了。然而,相同的gulp构建正在我的本地机器上运行。下面给出了函数和错误 功能: // S3 Upload for dev gulp.task('s3sync:dev', function () { var config = { accessKeyId: "-Key-", secretAccessKey: "-Key-" }; var s3 = require('gulp-s3-upload')(config);
// 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: 'example',
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)
有什么想法吗?最后,通过从capistrano中删除部署后创建的系统符号链接,该符号链接也在npm命令下运行,从而解决了此问题
npm run clean && npm run build
删除系统文件后。我已经运行了下面的命令,效果很好
gulp build:development