簡體   English   中英

Gulp手表因Spawn EACCES錯誤而失敗

[英]Gulp watch failing with Spawn EACCES error

知道是什么原因導致此錯誤嗎?

我的Gulp Watch陳述:

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 + ')'));
   });
});

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)

檢查事項:

  • 文件權限(在受監視的文件上)
  • 是否有一個正在運行的gulp.watch在監視其中的任何文件?
  • 是否已正確安裝所有NPM依賴項(較少,sass,browserify等)?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM