Open TonioloF opened 3 years 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!
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.