title: after I `npm install -g` something, I cannot use the CLI commands from the installed package
body: <p>my <code>npm install -g</code> is not working as intended. It installs the package I need, however the CLI commands which comes from the package is always absent.</p>
  
  <p>One example is, I was following the quick start on TypeORM. </p>
  
  <p>It says</p>
  
  <p>First, install TypeORM globally:</p>
  
  <pre><code>npm install typeorm -g
  </code></pre>
  
  <p>Then go to the directory where you want to create a new project and run the command:</p>
  
  <pre><code>typeorm init --name MyProject --database mysql
  </code></pre>
  
  <p>but when I tried <code>typeorm init --name MyProject --database mysql</code>. I got the error <code>-bash: typeorm: command not found</code> I think it has something to do with my environment path setting. </p>
  
  <p>This is the output from my <code>echo $PATH</code> </p>
  
  <p><code>/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/aria2/bin:/Applications/Wireshark.app/Contents/MacOS:/Applications/Postgres.app/Contents/Versions/latest/bin</code></p>
  
  <p>Can someone help me with this?</p>
  
  <hr>
  
  <p>OK I figured this out myself. Solution is here : <a href="https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally" rel="noreferrer">https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally</a></p>