fb-messenger-cli icon indicating copy to clipboard operation
fb-messenger-cli copied to clipboard

Error in logout

Open newtonke opened this issue 5 years ago • 2 comments

Select conversation :

/logout readline.js:1141 throw err; ^

TypeError [ERR_INVALID_CALLBACK]: Callback must be a function. Received undefined at makeCallback (fs.js:151:11) at Object.unlink (fs.js:1057:14) at Crypt.flush (/usr/local/lib/node_modules/fb-messenger-cli/lib/crypt.js:64:12) at InteractiveCli.exit (/usr/local/lib/node_modules/fb-messenger-cli/lib/interactive.js:555:15) at InteractiveCli.handleCommands (/usr/local/lib/node_modules/fb-messenger-cli/lib/interactive.js:406:25) at Interface.InteractiveCli.handler (/usr/local/lib/node_modules/fb-messenger-cli/lib/interactive.js:466:21) at Interface.emit (events.js:321:20) at Interface._onLine (readline.js:327:10) at Interface._line (readline.js:656:8) at Interface._ttyWrite (readline.js:997:14) { code: 'ERR_INVALID_CALLBACK' }

newtonke avatar Mar 04 '20 22:03 newtonke

Happens on OSX as well.

flokirr avatar Mar 10 '20 11:03 flokirr

@newtonke @RRaadi @Alex-Rose There is some problems because

latest version of NPM‘s code is different from GitHub’s code

There is no callback function in

fs.unlink(path.resolve(__dirname, '../', this.filename)

AlanSyue avatar Sep 11 '20 01:09 AlanSyue