Node.JS: How to fix error: [PM2][ERROR] File ecosystem.config.js not found


Node.JS: How to fix error: [PM2][ERROR] File ecosystem.config.js not found?

[root@tutorialspots myserver]# pm2 start -l /dev/null -i 0
[PM2][ERROR] File ecosystem.config.js not found
┌──────┬──────┬────────┬───┬─────┬────────┐
│ Name │ mode │ status │ ? │ cpu │ memory │
└──────┴──────┴────────┴───┴─────┴────────┘
 Use `pm2 show <id|name>` to get more details about an app

pm2 error file ecosystem not found

Simply, you run one command:

pm2 update

Result:

[root@tutorialspots myserver]# pm2 update
Be sure to have the latest version by doing `npm install pm2@latest -g` before d
oing this procedure.
[PM2] Saving current process list...
[PM2] [-] Stopping Modules
[PM2] [v] Modules Stopped
[PM2] [-] Stopping all Applications
[PM2][WARN] No process found
[PM2] [v] All Applications Stopped
[PM2] [-] Stopping Agent
[PM2] [v] Agent Stopped
[PM2] [-] Stopping PM2 Daemon
[PM2] [-] PM2 Daemon Stopped
[PM2] Spawning PM2 daemon with pm2_home=/root/.pm2
[PM2] Restoring processes located in /root/.pm2/dump.pm2
[PM2] Process /home/fbserver/index.js restored
[PM2] Process /home/fbserver/index.js restored
[PM2] Process /home/fbserver/index.js restored
[PM2] Process /home/fbserver/index.js restored
>>>>>>>>>> PM2 updated
┌───────┬─────────┬────────┬───┬─────┬───────────┐
│ Name  │ mode    │ status │ ? │ cpu │ memory    │
├───────┼─────────┼────────┼───┼─────┼───────────┤
│ index │ cluster │ online │ 0 │ 0%  │ 21.3 MB   │
│ index │ cluster │ online │ 0 │ 0%  │ 20.0 MB   │
│ index │ cluster │ online │ 0 │ 0%  │ 15.9 MB   │
│ index │ cluster │ online │ 0 │ 0%  │ 15.1 MB   │
└───────┴─────────┴────────┴───┴─────┴───────────┘
 Use `pm2 show <id|name>` to get more details about an app

Recent search terms:

  • File ecosystem config js not found pm2

Leave a Reply