title: How to install Gulp.js v4 globally with Yarn?
body: <p>I installed Gulp.js globally with Yarn:</p>
  
  <pre><code>$ yarn global add gulp --no-bin-links
  yarn global v1.17.3
  [1/4] Resolving packages...
  warning gulp &gt; glob-watcher &gt; anymatch &gt; micromatch &gt; snapdragon &gt; source-map-resolve &gt; urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
  warning gulp &gt; glob-watcher &gt; anymatch &gt; micromatch &gt; snapdragon &gt; source-map-resolve &gt; resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
  [2/4] Fetching packages...
  info fsevents@1.2.12: The platform "linux" is incompatible with this module.
  info "fsevents@1.2.12" is an optional dependency and failed compatibility check. Excluding it from installation.
  [3/4] Linking dependencies...
  [4/4] Building fresh packages...
  
  success Installed "gulp@4.0.2" with binaries:
        - gulp
  Done in 5.76s.
  </code></pre>
  
  <pre><code>$ yarn global add gulp-cli --no-bin-links
  yarn global v1.17.3
  [1/4] Resolving packages...
  [2/4] Fetching packages...
  info fsevents@1.2.12: The platform "linux" is incompatible with this module.
  info "fsevents@1.2.12" is an optional dependency and failed compatibility check. Excluding it from installation.
  [3/4] Linking dependencies...
  [4/4] Building fresh packages...
  
  success Installed "gulp-cli@2.2.0" with binaries:
        - gulp
  Done in 1.60s.
  </code></pre>
  
  <p><sub>(I'm using the <code>--no-bin-links</code> parameter to avoid this error: <code>error An unexpected error occurred: "EPROTO: protocol error, symlink '../../../semver/bin/semver' -&gt; '/path/to/project/public/components/accord/node_modules/.bin/semver'"</code>.)</sub></p>
  
  <p>The <code>yarn global list</code> provides the expected output:</p>
  
  <pre><code>$ yarn global list
  yarn global v1.17.3
  info "gulp@4.0.2" has binaries:
     - gulp
  info "gulp-cli@2.2.0" has binaries:
     - gulp
  Done in 0.53s.
  </code></pre>
  
  <p>But when I now execute <code>gulp</code>, old versions (Gulp <code>3.9.1</code> and Gulp CLI <code>2.2.0</code> are used:</p>
  
  <pre><code>$ gulp -v
  CLI version: 2.2.0
  Local version: 3.9.1
  </code></pre>
  
  <p><strong>What is wrong here and how to install the required Gulp version globally correctly with Yarn <em>and</em> make this version be used?</strong></p>