Hello, I tried to install a global npm module (pm2) but when I tried to use the pm2 command, it did not work.
Is this a problem with me or npm?
if you have a problem to install pm2 with npm try with yarn: yarn add pm2
To run pm2 you can use npx: npx pm2
or add ~/node_modules/.bin/ to $PATH and then run pm2 by just typing pm2.
You can also call it directly: ~/node_modules/.bin/pm2
yarn add pm2
admin Thank you, after looking into it I realized this could easily be solved with npx.