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

plugin.next.login is not a function #210

Open
lushuangning opened this issue May 29, 2020 · 1 comment
Open

plugin.next.login is not a function #210

lushuangning opened this issue May 29, 2020 · 1 comment

Comments

@lushuangning
Copy link

#180 # Problem Summary
After I execute the command “leetcode user -l”, it shows that the login failed and I get the following error message:

readline.js:1150
            throw err;
            ^

TypeError: plugin.next.login is not a function
    at Plugin.plugin.login (/usr/lib/node_modules/leetcode-cli/lib/plugins/cache.js:65:15)
    at /usr/lib/node_modules/leetcode-cli/lib/commands/user.js:50:12
    at /usr/lib/node_modules/leetcode-cli/node_modules/[email protected]@prompt/lib/prompt.js:336:32
    at /usr/lib/node_modules/leetcode-cli/node_modules/[email protected]@async/lib/async.js:154:25
    at assembler (/usr/lib/node_modules/leetcode-cli/node_modules/[email protected]@prompt/lib/prompt.js:333:9)
    at /usr/lib/node_modules/leetcode-cli/node_modules/[email protected]@prompt/lib/prompt.js:342:32
    at /usr/lib/node_modules/leetcode-cli/node_modules/[email protected]@prompt/lib/prompt.js:625:5
    at Interface.onLine (/usr/lib/node_modules/leetcode-cli/node_modules/[email protected]@read/lib/read.js:111:5)
    at Interface.emit (events.js:315:20)
    at Interface._onLine (readline.js:337:10)

How can I do to solve this problem?

Environment

 _           _                  _      
| |         | |                | |     
| | ___  ___| |_  ___  ___   __| | ___ 
| |/ _ \/ _ \ __|/ __|/ _ \ / _` |/ _ \
| |  __/  __/ |_  (__| (_) | (_| |  __/
|_|\___|\___|\__|\___|\___/ \__,_|\___|  CLI v2.6.2

[Environment]
Node                 v13.14.0
OS                   linux 5.4.0-33-generic
Cache                /home/lushuangning/.lc/leetcode.cn/cache
Config               /home/lushuangning/.lc/config.json

[Configuration]
autologin            {"enable":false,"retry":2}
code                 {"editor":"vim","lang":"cpp"}
file                 {"show":"${fid}.${slug}","submission":"${fid}.${slug}.${sid}.${ac}"}
color                {"enable":true,"theme":"default"}
icon                 {"theme":""}
network              {"concurrency":10,"delay":1}
app                  "leetcode.cn"

[Themes]
Colors               blue,dark,default,molokai,orange,pink,solarized,solarized.light
Icons                ascii,default,win7

[Plugins]
solution.discuss     2019.02.03
company              2017.12.18
cpp.lint             2017.07.27
cpp.run              2017.07.29
github               2018.11.18
cache                default
retry                default
leetcode.cn          2018.11.25
lintcode             2018.11.18
cookie.chrome        2018.11.18
cookie.firefox       2018.11.19
leetcode             default
@gucoi
Copy link

gucoi commented Nov 14, 2020

mark,do you have sovle the problem.

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

2 participants