title: ReferenceError: tasks is not defined Warning: Task "default" not found. Use
body: <p>I get the following error when running grunt:</p>
  
  <p>Loading "gruntfile.js" tasks...ERROR<br>
  ReferenceError: tasks is not defined<br>
  Warning: Task "default" not found. Use --force to continue. </p>
  
  <p>My gruntfile.js</p>
  
  <pre><code>module.exports = function(grunt){
  
    [
      'grunt-cafe-mocha',
      'grunt-contrib-jshint',
      'grunt-exec',
    ].forEach(function(task){
      grunt.loadNpmTasks(tasks);
    });
  
    // configure plugins
    grunt.initConfig({
      cafemocha: {
        all: {src: 'qa/tests-*.js', options: {ui: 'tdd'}, }
      },
      jshint: {
        app: ['app.js', 'public/js/**/*.js',
          'lib/**/*.js'],
        qa: ['gruntfile.js', 'public/qa/**/*.js', 'qa/**/*.js'],
      },
      exec: {
        linechecker:
          {cmd: 'linechecker http://localhost:3000'}
      }
    });
  
    // register tasks
    grunt.registerTask('default', ['cafemocha', 'jshint', 'exec']);
  };
  </code></pre>
  
  <p>Does anyone have any idea how to solve?</p>