指南针插座挂断与咕噜声服务

时间:2014-11-04 12:11:45

标签: 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 Socket.emit (events.js:95:17)
at TCP.close (net.js:465:12)

我已升级到grunt-contrib-compass@1.0.1,现在它不再退出,但它会产生以下错误/警告(当发生这种情况时它不会再退出,即使它表示致命)

Fatal error: socket hang up
Fatal error: socket hang up

我只能假设更好的错误处理是同样的问题。是否有某种方法可以从抛出此错误的内容中获取更好的信息?这是我的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
            }
        }
    },

0 个答案:

没有答案