PM2 command not found
<p>I installed node.js and npm to my centOS 7 server. But i have problems with pm2.
Actually real problem is i don't have experiences in linux and i don't know how to change path.
Here is folder structure.</p>

<pre><code>* bin
* code
* error_docs
* httpdocs
* lib64
* logs
* tmp
* var
* chat(my node.js folder)
    * node_modules
        * pm2
        * sockjs
    * server.js
* dev
* etc
* lib
* local
* sbin
* usr
</code></pre>

<p>I entered folder by typing <code>cd chat</code> and installed pm2 with <code>npm install pm2</code>.</p>

<p>After that I tried use pm2 for my server.js by typing <code>pm2 server.js</code> server returns "pm2 command not found". I can use node.js without any problem but pm2 not working.</p>

<p>How can i solve this?</p>