title: -bash: yarn: command not found even after installing it globally
body: <p>Mac OS  10.13.6</p>
  <p>How did I install yarn</p>
  <pre><code>npm install --global yarn
  </code></pre>
  <p>yarn installation path is <code>/Users/useName/.config/yarn</code></p>
  <p>Then ran below command</p>
  <pre><code>yarn create react-app app-name
  </code></pre>
  <p>This worked well, but when I'm trying to run <code>yarn add package_name</code>, it's throwing error</p>
  <pre><code>bash: yarn: command not found
  </code></pre>
  <p>The weird thing, after closing and opening terminal again under which I had globally ( ? ) installed yarn, the yarn command is not found.</p>