pm2: command not found on Ubuntu server 14.04 #1112

Closed
michele-prandina opened this Issue Mar 19, 2015 · 2 comments

Comments

Projects
None yet
4 participants

Node version installed v0.10.25

When installing npm install pm2 -g and run pm2 start server.js I get the following issue:

No command 'pm2' found, did you mean:
 Command 'pms' from package 'pms' (universe)
 Command 'pmw' from package 'pmw' (universe)
 Command 'wm2' from package 'wm2' (universe)
 Command 'pmk' from package 'pmk' (universe)
 Command 'fpm2' from package 'fpm2' (universe)
 Command 'pmi' from package 'powermanagement-interface' (universe)
 Command 'pom2' from package 'libpod-pom-perl' (universe)
 Command 'pm' from package 'powerman' (universe)
pm2: command not found

Any clue why I get this?

PS: I'm working as root.

...because PM2 is not in your path.

type:
npm config get prefix

Append "/bin" to whatever that result is,
Then add that to your path in /etc/environment

(then restart or type "source /etc/environment" for that to take effect)

This can be closed

@soyuka soyuka closed this Apr 7, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment