PM2 command not found

后端 未结 8 493
夕颜
夕颜 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:02

    Install PM2 globally and run everything as a root user

    sudo apt-get install npm
    sudo npm i -g pm2
    sudo ln -s /usr/bin/nodejs /usr/bin/node
    

    You are good to go

提交回复
热议问题