Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in logout #224

Open
newtonke opened this issue Mar 4, 2020 · 2 comments
Open

Error in logout #224

newtonke opened this issue Mar 4, 2020 · 2 comments

Comments

@newtonke
Copy link

newtonke commented Mar 4, 2020

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'
}

@flokirr
Copy link

flokirr commented Mar 10, 2020

Happens on OSX as well.

@AlanSyue
Copy link

AlanSyue commented Sep 11, 2020

@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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants