忽略了grunt connect port选项

Pet*_*ton 2 javascript connect gruntjs

我无法使用grunt connect来使用我在选项中指定的端口.在我的grunt文件中是以下配置

connect: {
        options: {
            port: 9000,
            hostname: '0.0.0.0'
        },
        test: {
            options: {
                port: 9001,
                open: true,
                base: 'test'
            }
        }
    }
Run Code Online (Sandbox Code Playgroud)

但是当我运行grunt connect:test控制台时,引发返回以下内容

在端口1337上打开/ home/peter/Projects/HammerHead2的服务器.

Pet*_*ton 7

简单解决方案

我安装了grunt-connect NOT grunt-contrib-connect