Exiting
Stop daemon
Remove pid file
internal/fs/utils.js:785
throw new ERR_INVALID_ARG_TYPE(
^
TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of Error
at Object.writeFile (fs.js:1487:5)
at Object.appendFile (fs.js:1550:6)
at Group._log (/home/k1ng/.nvm/versions/node/v14.17.0/lib/node_modules/chalet/lib/daemon/group.js:134:12)
at Monitor.<anonymous> (/home/k1ng/.nvm/versions/node/v14.17.0/lib/node_modules/chalet/lib/daemon/group.js:249:23)
at Monitor.emit (events.js:388:22)
at ChildProcess.<anonymous> (/home/k1ng/.nvm/versions/node/v14.17.0/lib/node_modules/chalet/node_modules/respawn/index.js:164:12)
at ChildProcess.emit (events.js:376:20)
at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
at onErrorNT (internal/child_process.js:467:16)
at processTicksAndRejections (internal/process/task_queues.js:82:21) {
code: 'ERR_INVALID_ARG_TYPE'
}