title: Warning: connect.static is not a function Use --force to continue
body: <p>I am using YO lessapp project, "grunt-contrib-connect" helps me to start a node js server on 9000 port. Whenever I run grunt serve (start the server) the service is aborted due to the below warning.</p>
  
  <pre><code>Running "connect:livereload" (connect) task
  Warning: connect.static is not a function Use --force to continue.
  </code></pre>
  
  <p>The exact error took place in the below function in Gruntfile.js</p>
  
  <pre><code> livereload: {
          options: {
            middleware: function(connect) {
              return [
                connect.static('.tmp'),
                connect().use('/bower_components', connect.static('./bower_components')),
                connect.static(config.app)
              ];
            }
          }
        }, 
  </code></pre>
  
  <p>I have installed 
  <code>npm install grunt-contrib-connect --save-dev</code>, 
  <code>npm install serve-static --save-dev</code> </p>
  
  <p>I came across few post, some suggest to turn off the firewall but no luck.</p>
  
  <p>I know there is something to do with my machine or npm/node/connect version conflicts, because I tried to run the same app from other machine and it works fine.</p>
  
  <p>System configuration :</p>
  
  <ul>
  <li>Windows 7 Professional </li>
  <li>Node -v4.1.2  </li>
  <li>npm -v2.14.4</li>
  <li>connect@3.4.0</li>
  </ul>
  
  <p>I have installed connect and serve-static based upon the post <a href="https://stackoverflow.com/questions/24346161/nodejs-connect-cannot-find-static">nodejs connect cannot find static</a>, but still the same</p>
  
  <p>Any help? Thanks in Advance</p>