title: nvm with yarn Yarn requires Node.js 4.0 or higher to be installed
body: <p>I have nvm:</p>
  
  <pre><code>nvm ls
          v8.11.3
          v8.11.4
  -&gt;      v11.1.0
  default -&gt; 8.11.4 (-&gt; v8.11.4)
  node -&gt; stable (-&gt; v11.1.0) (default)
  stable -&gt; 11.1 (-&gt; v11.1.0) (default)
  </code></pre>
  
  <p>I installed yarn with:</p>
  
  <pre><code>sudo apt-get install --no-install-recommends yarn
  </code></pre>
  
  <p>I also added in .bashrc <code>alias node=nodejs</code>. But when I try <code>yarn install</code> I see:</p>
  
  <pre><code>Yarn requires Node.js 4.0 or higher to be installed.
  </code></pre>
  
  <p>How can I fix it?</p>