pm2-gui icon indicating copy to clipboard operation
pm2-gui copied to clipboard

TypeError [ERR_INVALID_CALLBACK]: Callback must be a function

Open Bernard04 opened this issue 5 years ago • 4 comments

[INFO] Starting... [WARN] Can not load PM2 config, the file "/root/.pm2/conf.js" does not exist or empty, fallback to auto-load by pm2 home. [WARN] Can not load PM2 config, the file "/root/.pm2/conf.js" does not exist or empty, fallback to auto-load by pm2 home. fs.js:135 throw new ERR_INVALID_CALLBACK(); ^

TypeError [ERR_INVALID_CALLBACK]: Callback must be a function at maybeCallback (fs.js:135:9) at Object.writeFile (fs.js:1181:14) at Object.fork (/usr/lib/node_modules/pm2-gui/lib/daemon.js:121:12) at start (/usr/lib/node_modules/pm2-gui/lib/daemon.js:47:30) at /usr/lib/node_modules/pm2-gui/node_modules/async/lib/async.js:718:13 at Immediate.iterate (/usr/lib/node_modules/pm2-gui/node_modules/async/lib/async.js:262:13) at processImmediate (timers.js:632:19) [WARN] ✘ stopped

Bernard04 avatar Jan 08 '19 09:01 Bernard04

Also getting this same problem from the latest npm version, It launches if I install from the repo though:

npm install pm2-gui@https://github.com/Tjatse/pm2-gui.git -g

RedSparr0w avatar Apr 19 '19 04:04 RedSparr0w

Have you solved this problem?

yatokami avatar Jul 18 '19 12:07 yatokami

same problem

micookie avatar May 07 '20 07:05 micookie

same

TypeError [ERR_INVALID_CALLBACK]: Callback must be a function. Received undefined at maybeCallback (fs.js:144:9) at Object.writeFile (fs.js:1325:14) at Object.fork (/home/ec2-user/.nvm/versions/node/v12.18.2/lib/node_modules/pm2-gui/lib/daemon.js:121:12) at start (/home/ec2-user/.nvm/versions/node/v12.18.2/lib/node_modules/pm2-gui/lib/daemon.js:47:30) at /home/ec2-user/.nvm/versions/node/v12.18.2/lib/node_modules/pm2-gui/node_modules/async/lib/async.js:718:13 at Immediate.iterate [as _onImmediate] (/home/ec2-user/.nvm/versions/node/v12.18.2/lib/node_modules/pm2-gui/node_modules/async/lib/async.js:262:13) at processImmediate (internal/timers.js:456:21) { code: 'ERR_INVALID_CALLBACK'

AviFix avatar Jan 23 '21 18:01 AviFix