keymetrics / pm2-logrotate

Automatically rotate all applications logs managed by PM2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting error when install pm2-logrotate

aharon-vish opened this issue · comments

Hello,
I am trying to install pm2-logrotate ,
When i run sudo pm2 install pm2-logrotate i am getting :

[PM2][Module] Installing NPM pm2-logrotate module
[PM2][Module] Calling [NPM] to install pm2-logrotate ...
npm ERR! code EAI_AGAIN
npm ERR! errno EAI_AGAIN
npm ERR! request to https://registry.npmjs.org/pm2-logrotate failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org:443

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/moveoadm/.npm/_logs/2022-09-11T13_04_42_519Z-debug.log
[PM2][ERROR] Installation failed via NPM, module has been restored to prev version

pm2 version: 3.2.9
node veriosn: v12.16.1

I am using NVM don't konw if it's relevent