title: How to use Watchify?
body: <p>I am using gulp in windows environment and need to use watchify. </p>
  
  <p>In my gulp file I have written the following code --</p>
  
  <pre><code>var bundlePaths = {
      src: [
          './js/**/*.js',
          "!./js/lib/*.js" // Don't bundle libs
      ],
      dest:'build/js/'
  }
  
  
  // Hack to enable configurable watchify watching
  var watching = false
  gulp.task('enable-watch-mode', function() { watching = true })
  
  // Browserify and copy js files
  gulp.task('browserify', watchify(function(watchify) {
      return gulp.src(bundlePaths.src)
          .pipe(watchify({
              watch:watching
          }))
          .pipe(gulp.dest(bundlePaths.dest))
  }))
  
  gulp.task('watchify', ['enable-watch-mode', 'browserify']);
  </code></pre>
  
  <p>In the console when I am running the command gulp watchify I am getting the following error--</p>
  
  <pre><code>TypeError: Cannot read property 'cache' of undefined
      at watchify (C:\inetpub\wwwroot\RTB_CURRENT\IM.Application\IM.Application\UI
  \node_modules\watchify\index.js:14:27)
      at Object.&lt;anonymous&gt; (C:\inetpub\wwwroot\RTB_CURRENT\IM.Application\IM.Appl
  ication\UI\gulp-build\tasks\kernel.js:147:25)
      at Module._compile (module.js:456:26)
      at Object.Module._extensions..js (module.js:474:10)
      at Module.load (module.js:356:32)
      at Function.Module._load (module.js:312:12)
      at Module.require (module.js:364:17)
      at require (module.js:380:17)
      at requireDir (C:\inetpub\wwwroot\RTB_CURRENT\IM.Application\IM.Application\
  UI\node_modules\require-dir\index.js:112:33)
      at requireDir (C:\inetpub\wwwroot\RTB_CURRENT\IM.Application\IM.Application\
  UI\node_modules\require-dir\index.js:72:33)
  </code></pre>
  
  <p>Please let me know how to resolve the following issue.</p>