jessety / pm2-installer

Install PM2 offline as a service on Windows or Linux. Mostly designed for Windows.
MIT License
494 stars 50 forks source link

pm2 logrotate got stuck with install #84

Open sendev1 opened 1 year ago

sendev1 commented 1 year ago

Description

Hello,

Some times in windows machine when logrotate is being installed the process got stuck here for ever. The original seup-logrotate.ps1 had this command pm2 install . --silent and the process got stuck after this log statement Installing pm2-logrotate locally in directory: C:\ProgramData\npm\npm\node_modules\@jessety\pm2-logrotate\.

I removed --slien flag and tried and now it printed [PM2] Spawning PM2 daemon with pm2_home=C:\ProgramData\pm2\home and got suck forever. It does not get stuck some times but it does sometimes. Can you please help with this issue.

=== Creating Service Complete ===
=== Adding Log Rotation ===
Running in offline mode. Will not attempt to check npm registry connectivity.
Installing pm2-logrotate locally in directory: C:\ProgramData\npm\npm\node_modules\@jessety\pm2-logrotate\
[PM2] Spawning PM2 daemon with pm2_home=C:\ProgramData\pm2\home

Steps to Reproduce

  1. update seup-logrotate.ps1with this commandpm2 install .`
  2. Install PM2
  3. Process gets stuck in windows.

Environment

C:\WINDOWS\system32>npm -v 8.5.5

C:\WINDOWS\system32>node -v v16.15.0

C:\WINDOWS\system32>pm2 -v 5.2.2