首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >误咬表失败并产生EACCES错误

误咬表失败并产生EACCES错误
EN

Stack Overflow用户
提问于 2015-11-16 17:38:02
回答 1查看 1.2K关注 0票数 1

知道是什么导致了这个错误吗?

我的杯表声明:

代码语言:javascript
复制
gulp.task('watch', function() {

   gulp.watch('app/**/**/*.html', ['html-templates']).on('change', function(file) {
       gutil.log(gutil.colors.yellow.bold('HTML updated' + ' (' + file.path + ')'));
   });

   gulp.watch('app/assets/imgs/*.svg').on('change', function(file) {
       gutil.log(gutil.colors.magenta('SVG updated' + ' (' + file.path + ')'));
   });

   gulp.watch('bower_components/sass-smacss/sass/**/*.scss', ['app-css']).on('change', function(file) {
       gutil.log(gutil.colors.cyan.bold('CSS updated' + ' (' + file.path + ')'));
   });

   gulp.watch('highcharts/js/*.js', ['highcharts-js']).on('change', function(file) {
       gutil.log(gutil.colors.red.bold('JavaScript updated' + ' (' + file.path + ')'));
   });

   gulp.watch(paths.scripts, ['app-js']).on('change', function(file) {
       gutil.log(gutil.colors.red.bold('JavaScript updated' + ' (' + file.path + ')'));
   });
});
代码语言:javascript
复制
11:27:05] Error: spawn EACCES
  at exports._errnoException (util.js:746:11)
  at ChildProcess.spawn (child_process.js:1162:11)
  at exports.spawn (child_process.js:995:9)
  at spawn (/Users/username/dashboard/node_modules/gulp-ruby-sass/node_modules/win-spawn/index.js:54:10)
  at module.exports (/Users/username/dashboard/node_modules/gulp-ruby-sass/index.js:89:13)
  at Gulp.<anonymous> (/Users/username/dashboard/gulpfile.js:246:12)
  at module.exports (/Users/username/dashboard/node_modules/gulp/node_modules/orchestrator/lib/runTask.js:34:7)
  at Gulp.Orchestrator._runTask (/Users/username/dashboard/node_modules/gulp/node_modules/orchestrator/index.js:273:3)
  at Gulp.Orchestrator._runStep (/Users/username/dashboard/node_modules/gulp/node_modules/orchestrator/index.js:214:10)
  at Gulp.Orchestrator.start (/Users/username/dashboard/node_modules/gulp/node_modules/orchestrator/index.js:134:8)
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-11-16 17:51:51

要检查的事情:

  • 文件权限(对所监视的文件)
  • 是否有一个正在运行的gulp.watch正在监视这些文件?
  • 是否正确安装了所有NPM依赖项(较少、sass、浏览器化等)?
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/33741367

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档