Unitech / pm2

Node.js Production Process Manager with a built-in Load Balancer.
https://pm2.keymetrics.io/docs/usage/quick-start/
Other
41.4k stars 2.61k forks source link

Spawning PM2 daemon with pm2_home=/home/<user>/.pm2 #5108

Open TonioloF opened 3 years ago

TonioloF commented 3 years ago

I'm using Ubuntu 20.04

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.

dev-garcia commented 2 months ago

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!