Gruntjs 罗盘插座挂断,发出咕噜声
我在运行grunt contrib-compass@0.6.0它正在中止,并出现以下错误:Gruntjs 罗盘插座挂断,发出咕噜声,gruntjs,grunt-contrib-compass,Gruntjs,Grunt Contrib Compass,我在运行grunt contrib-compass@0.6.0它正在中止,并出现以下错误: node_modules/grunt-contrib-compass/node_modules/tmp/lib/tmp.js:261 throw err; ^ Error: socket hang up at createHangUpError (http.js:1476:15) at Socket.socketCloseListener (http.js:1526:23) at So
node_modules/grunt-contrib-compass/node_modules/tmp/lib/tmp.js:261
throw err;
^
Error: socket hang up
at createHangUpError (http.js:1476:15)
at Socket.socketCloseListener (http.js:1526:23)
at Socket.emit (events.js:95:17)
at TCP.close (net.js:465:12)
我升级为grunt contrib-compass@1.0.1现在它不再退出,但会产生以下错误/警告(发生这种情况时,它不再退出,即使它说是致命的)
我只能假设,在更好的错误处理方面,这也是同样的问题。有什么方法可以从抛出这个错误的东西中获得更好的信息吗?这是我Gruntfile的指南针部分
compass: {
options: {
sassDir: '<%= yeoman.app %>/styles',
cssDir: '.tmp/styles',
generatedImagesDir: '.tmp/images/generated',
imagesDir: '<%= yeoman.app %>/images',
javascriptsDir: '<%= yeoman.app %>/scripts',
fontsDir: '<%= yeoman.app %>/fonts',
importPath: '<%= yeoman.app %>/bower_components',
httpImagesPath: '/images',
httpGeneratedImagesPath: '/images/generated',
httpFontsPath: 'styles/fonts',
relativeAssets: false,
trace: true
},
dist: {},
server: {
options: {
debugInfo: true
}
}
},
指南针:{
选项:{
sassDir:“/styles”,
cssDir:“.tmp/styles”,
generatedImagesDir:'.tmp/images/generated',
imagesDir:“/images”,
javascriptsDir:“/scripts”,
fontsDir:“/fonts”,
导入路径:'/bower_components',
httpImagesPath:“/images”,
httpGeneratedImagesPath:“/images/generated”,
httpFontsPath:“样式/字体”,
相对论:错,
跟踪:对
},
地区:{},
服务器:{
选项:{
debugInfo:true
}
}
},
似乎是指南针的一个缺陷。我在使用ruby compass的ubuntu发行版时遇到了问题,sudo gem install compass
现在已经解决了这个问题。
compass: {
options: {
sassDir: '<%= yeoman.app %>/styles',
cssDir: '.tmp/styles',
generatedImagesDir: '.tmp/images/generated',
imagesDir: '<%= yeoman.app %>/images',
javascriptsDir: '<%= yeoman.app %>/scripts',
fontsDir: '<%= yeoman.app %>/fonts',
importPath: '<%= yeoman.app %>/bower_components',
httpImagesPath: '/images',
httpGeneratedImagesPath: '/images/generated',
httpFontsPath: 'styles/fonts',
relativeAssets: false,
trace: true
},
dist: {},
server: {
options: {
debugInfo: true
}
}
},