6

我正在运行 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
            }
        }
    },
4

0 回答 0