title: Command 'pm2' not found
body: <p>I recently cloned my nodejs express app on ec2 ubuntu instance. I ran <code>npm install pm2</code> but it didn't have write permissions. So I ran</p>
  <pre><code>sudo chown _R $USER /usr/lib/node_modules
  </code></pre>
  <p>After that PM2 got installed but when I hit <code>pm2 start app.js</code>, it shows pm2 command not found. I have installed it globally locally but nothing works.
  What should I do? Check out the <a href="https://i.stack.imgur.com/Dnrmg.png" rel="nofollow noreferrer">screenshot of ERROR</a></p>