title: How to fix "Task is not in your gulpfile" error when using npm link?
body: <p>We have a bunch of applications sharing common gulp logic, so we made a gulp plugin that contains a bunch of custom tasks. </p>
  
  <p>However we'd like to avoid installing gulp+our plugin (along with half the internet) for each of the applications we develop.</p>
  
  <p>Ideally, I'd like to do:</p>
  
  <pre><code>npm install -g gulp
  npm install -g &lt;our gulp plugin&gt;
  </code></pre>
  
  <p>Then for each app, we'd simply have to do:</p>
  
  <pre><code>npm link gulp
  npm link &lt;our gulp plugin&gt;
  </code></pre>
  
  <p>Although this works, the problem is gulp no longer recognizes any of our custom gulp tasks. Any gulp command I run results in:</p>
  
  <pre><code>[15:16:51] Using gulpfile /workspace/my-app/gulpfile.js
  [15:16:51] Task 'dev' is not in your gulpfile
  [15:16:51] Please check the documentation for proper gulpfile formatting
  </code></pre>
  
  <p>The 'dev' tasks is in my gulp plugin, why isn't it finding it? My gulpfile.js only has this:</p>
  
  <pre><code>var gulp = require('gulp');
  var mygulpplugin = require('mygulpplugin');
  </code></pre>
  
  <p>The exact same process works when gulp + the plugin is installed locally. Any ideas why?</p>