title: bash: pm2: command not found
body: <p>I can't run pm2 on ubuntu box.
  I'm not sure what's the problem.
  The pm2 is installed globally.</p>
  
  <pre><code>npm list -g --depth=0
  /opt/nodejs/lib
  ├── forever@0.15.3
  ├── node-gyp@3.4.0
  ├── npm@2.15.9
  ├── pm2@2.1.5
  ├── userdown@0.2.1
  └── wait-for-mongo@0.2.0
  </code></pre>
  
  <p>But I still get </p>
  
  <pre><code>pm2
  -bash: pm2: command not found
  </code></pre>
  
  <p>if I run other app</p>
  
  <pre><code>userdown
  Starting Script is not provided
  </code></pre>
  
  <p>versions</p>
  
  <pre><code>node v4.5.0
  npm  v2.15.9
  </code></pre>
  
  <p>log from installation:</p>
  
  <pre><code>sudo npm install pm2 -g
  npm WARN optional dep failed, continuing fsevents@1.0.15
  /opt/nodejs/bin/pm2 -&gt; /opt/nodejs/lib/node_modules/pm2/bin/pm2
  /opt/nodejs/bin/rundev -&gt; /opt/nodejs/lib/node_modules/pm2/bin/rundev
  /opt/nodejs/bin/pm2-dev -&gt; /opt/nodejs/lib/node_modules/pm2/bin/pm2-dev
  /opt/nodejs/bin/pm2-docker -&gt; /opt/nodejs/lib/node_modules/pm2/bin/pm2-docker
  pm2@2.1.5 /opt/nodejs/lib/node_modules/pm2
  ├── gkt@1.0.0
  ├── eventemitter2@1.0.5
  ├── semver@5.3.0
  ├── async@1.5.2
  ├── fclone@1.0.10
  ├── pidusage@1.1.0
  ├── vizion@0.2.13
  ├── commander@2.9.0 (graceful-readlink@1.0.1)
  ├── debug@2.3.0 (ms@0.7.2)
  ├── pm2-axon-rpc@0.4.5 (fclone@1.0.8)
  ├── pm2-deploy@0.3.3 (tv4@1.2.7)
  ├── pm2-multimeter@0.1.2 (charm@0.1.2)
  ├── chalk@1.1.3 (escape-string-regexp@1.0.5, ansi-styles@2.2.1, supports-color@2.0.0, strip-ansi@3.0.1, has-ansi@2.0.0)
  ├── cli-table@0.3.1 (colors@1.0.3)
  ├── mkdirp@0.5.1 (minimist@0.0.8)
  ├── source-map-support@0.4.6 (source-map@0.5.6)
  ├── nssocket@0.6.0 (eventemitter2@0.4.14, lazy@1.0.11)
  ├── pmx@0.6.8 (json-stringify-safe@5.0.1)
  ├── pm2-axon@3.0.2 (amp-message@0.1.2, escape-regexp@0.0.1, amp@0.3.1, debug@2.2.0)
  ├── cron@1.1.1 (moment-timezone@0.5.9)
  ├── yamljs@0.2.8 (glob@7.1.1, argparse@1.0.9)
  ├── chokidar@1.6.1 (path-is-absolute@1.0.1, async-each@1.0.1, inherits@2.0.3, glob-parent@2.0.0, is-glob@2.0.1, is-binary-path@1.0.1, readdirp@2.1.0, anymatch@1.3.0)
  ├── shelljs@0.7.5 (interpret@1.0.1, glob@7.1.1, rechoir@0.6.2)
  └── moment@2.17.0
  kamil@vps2:~$ pm2
  -bash: pm2: command not found
  </code></pre>
  
  <p>ubuntu version:</p>
  
  <pre><code>uname -a
  Linux vps2 2.6.32-042stab111.11 #1 SMP Tue Sep 1 18:19:12 MSK 2015 x86_64 x86_64 x86_64 GNU/Linux
  </code></pre>