当我尝试运行grunt watch
时,我遇到了GruntJS的错误。
它一开始还可以正常工作,但是一旦文件发生了变化,就会出现以下类似的错误:
Running "watch" task
Waiting...[1] 2464 bus error grunt watch
数字 2464
发生变化。看起来是grunt正在监听的端口?但我不确定。这是我的Gruntfile:
module.exports = function (grunt) {
"use strict";
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: {
dist: {
options: {
style: 'compact'
},
files: {
'css/style.css': 'sass/style.scss',
}
}
},
watch: {
files: 'sass/style.scss',
tasks: ['sass']
}
});
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('default', ['sass']);
};
提前感谢所有的帮助!
sudo n stable
将我放在4.0.0上,但我仍然在gulp watch上遇到总线错误。只是提供信息。 - coblr