title: express command not recognized by the mac terminal
body: <p>I am new to nodeJS and I am trying to install express. I have already installed node and npm. I am using Max OSX(10.10.1). I am getting error:</p>
  
  <pre><code>-bash: express: command not found
  </code></pre>
  
  <p>I have gone through all the questions here but couldn't get any answer to my problem. I tried these commands:</p>
  
  <pre><code>sudo npm install -g express
  sudo npm install -g express-generator
  </code></pre>
  
  <p>I tried to install it locally without the -g. 
  Also, when I did a sudo npm init, I saw that express existed in the dependencies:</p>
  
  <pre><code>"dependencies": {
  "orientjs": "^2.1.0",
  "express-generator": "^4.13.1",
  "express": "^2.5.11"
  }
  </code></pre>
  
  <p>I added the below paths in .bash_profile one at a time. These are the paths where express folder is there.</p>
  
  <pre><code>.node/bin, 
  .node/lib/node_modules in the 
  /usr/local/node_modules 
  </code></pre>
  
  <p>but it is not present in /usr/local/bin folder. I feel this might be the reason why it throws the error mentioned above.</p>
  
  <p>I tried to link express to npm but it gave an error:</p>
  
  <pre><code>npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "link"        
  "express"    
  npm ERR! ELOOP: too many symbolic links encountered, 
  stat '$HOME/.node/lib/node_modules/express'
  </code></pre>
  
  <p>How do I make sure that express is recognized by the terminal? I tried uninstalling and reinstalling several times.</p>