pm2
pm2 copied to clipboard
Spawning PM2 daemon with pm2_home=/home/<user>/.pm2
I'm using Ubuntu 20.04
- Node Version - 14.17.1
- npm version 7.17.0.
I installed the latest version of pm2. However all the commands I try to execute are returning the above message. Does anyone know any solution ? This message indicates that something is wrong, but it does not indicate what exactly.
Tentei muitas coisas, a solução foi remover o node que instalei com snap e instalar o node com o tutorial: https://nodejs.org/en/download/package-manager
Passo a passo do link, nele lista os seguintes comandos:
installs nvm (Node Version Manager)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
download and install Node.js (you may need to restart the terminal)
nvm install 20
verifies the right Node.js version is in the environment
node -v
verifies the right NPM version is in the environment
npm -v
Após esses passos o comando pm2 já começou a funcionar sem erros!