PM2 command not found

后端 未结 8 490
夕颜
夕颜 2020-12-24 11:37

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

8条回答
  •  醉话见心
    2020-12-24 12:04

    If you install through NPM and it does not work, you can create a symbolic link as well :

    ln -s //.npm-global/lib/node_modules/pm2/bin/pm2 /usr/bin/pm2
    

    After that, you're going to be able to call:

    pm2
    

提交回复
热议问题