Grunt任务以总线错误退出:10

时间:2013-12-11 14:25:24

标签: javascript node.js gruntjs jshint grunt-contrib-watch

我正在使用以下JSHint Grunt任务,传递正常:

jshint: {
            options: {
                ignores: ['js/characters/**/*.js','js/libs/**/*.js','js/text.js','js/video.js'],
                predef: ['define', 'require'],
                reporter: require('jshint-stylish'),

                curly: true,
                eqnull: true,
                eqeqeq: true,
                undef: false,




            },
            all: ['js/**/*.js'],



        }

我正在尝试将其配置为在监视任务中工作:

watch: {

            scripts: {
               files: ['<%= jshint.all %>'],
             ignores: ['js/characters/**/*.js','js/libs/**/*.js','js/text.js','js/video.js'],
               tasks: ['jshint']
           },
            css: {
                files: ['**/*.sass'],
                tasks: ['compass'],
                options: {
                    livereload: true,
                }
            }
        }

但每次更改JS文件时,手表都会以Bus error: 10

退出

1 个答案:

答案 0 :(得分:6)

升级到节点0.10.22修复了此问题。