title: pm2 command not found after path is added
body: <p>I am installing PM2 for hubot rocket.chat adapter. so i did the following:
  I firstly added a  file to hubot adapter folder, then </p>
  
  <pre><code>sudo npm install pm2 -g
  cd &lt;hubot directory&gt;
  pm2 start &lt;pm2.json&gt;
  </code></pre>
  
  <p>The i got error saying this:</p>
  
  <pre><code>No command 'pm2' found, did you mean:
   Command 'wm2' from package 'wm2' (universe)
   Command 'pms' from package 'pms' (universe)
   Command 'pmk' from package 'pmk' (universe)
   Command 'pmw' from package 'pmw' (universe)
   Command 'fpm2' from package 'fpm2' (universe)
   Command 'pom2' from package 'libpod-pom-perl' (universe)
   Command 'pmi' from package 'powermanagement-interface' (universe)
   Command 'pm' from package 'powerman' (universe)
  pm2: command not found
  </code></pre>
  
  <p>Then I tried to add the path by doing: </p>
  
  <pre><code>sudo env PATH=$PATH:/home/jy/.npm-global/bin pm2 startup -u safeuser
  </code></pre>
  
  <p>and</p>
  
  <pre><code>export PATH=$PATH:/home/jy/.npm-global/bin
  </code></pre>
  
  <p>and restarted PuTTY,</p>
  
  <p>still get the same error.</p>
  
  <p>when I went to where PM2 is at, which is <code>/home/jy/.npm-global/bin</code>, and do <code>pm2 start &lt;pm2.json&gt;</code> command, still get the same error.</p>
  
  <p>Is there anything i did wrong? or there might be other reasons?</p>