title: how to solve "sequelize: command not found"?
body: <p>This is so frustrating.. I am trying to install sequalize for node.js. I installed it locally with success, but I cant install it globally  (I am getting permission denied errors for:</p>
  
  <pre><code> \'../lib/node_modules/sequelize-cli/lib/sequelize\').
  </code></pre>
  
  <p>I actually don't really want it globally installed, but when have it locally and should configure and initialize the sequelize module (by typing <strong><em>sequelize init:models &amp; sequelize init:config</em></strong> in terminal) I get the following error:</p>
  
  <pre><code>-bash: sequelize: command not found
  </code></pre>
  
  <p>So I did my homework and found out that the command not found error could be solved with globally install (<a href="https://stackoverflow.com/questions/43099808/bash-sequelize-command-not-found">-bash: sequelize: command not found</a>) and to fix the error in enabling globally install I changed my user access (<a href="https://stackoverflow.com/questions/48910876/error-eacces-permission-denied-access-usr-local-lib-node-modules-react">Error: EACCES: permission denied, access &#39;/usr/local/lib/node_modules&#39; react</a>), but this didnt do the trick, I still getting permission denied.</p>
  
  <p>So my question is how could I run <strong><em>sequelize init:models &amp; sequelize init:config</em></strong> in terminal without getting command not found? </p>