grunt throw “Recursive process.nextTick detected”

前端 未结 6 1176
囚心锁ツ
囚心锁ツ 2020-12-07 18:05

I\'m running Lion 10.9.2 with nodejs v0.10.26

I want to setup an automated compilation on sass files and a live reload with grunt, nothing complicated but...

相关标签:
6条回答
  • 2020-12-07 18:40

    Alternative solution: check your watch for an empty file argument.

    Here's an excerpt of my gruntfile

    watch: {
      all: {
        options:{
          livereload: true
        },
        files: ['src/scss/*.scss', 'src/foo.html',, 'src/bar.html'],
        tasks: ['default']
      }
    }
    

    In my case, I could recreate the original poster's error on demand with the empty argument above.

    0 讨论(0)
  • 2020-12-07 18:47

    I was getting error in even trying to install grunt. Running npm dedupe solved my problem as answered here: Grunt watch error - Waiting...Fatal error: watch ENOSPC

    0 讨论(0)
  • 2020-12-07 18:50

    I just fixed a similar error "Recursive process.nextTick detected" causing by command: grunt server

    The solution? Use sudo grunt serve instead

    0 讨论(0)
  • 2020-12-07 18:52

    you could try this one, it fixed the issue for me, working with Yeoman 1.3.3 and Ubuntu 14.04 Grunt watch error - Waiting...Fatal error: watch ENOSPC

    0 讨论(0)
  • 2020-12-07 18:56

    Just had this problem. Resolved it by removing grunt.registerTask('watch', [ 'watch']);

    0 讨论(0)
  • 2020-12-07 19:03

    I finally figured out a similar problem I was having with SASS. I was using

    grunt.registerTask('sass', [ 'sass']);
    

    The trick was that Grunt doesn't seem to like the repetition in names. When I switch to

    grunt.registerTask('styles', [ 'sass']);
    

    Everything worked as it should.

    0 讨论(0)
提交回复
热议问题