我正在使用以下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
答案 0 :(得分:6)
升级到节点0.10.22修复了此问题。