Skip to content

LeetCode plugin failed to initialize #594

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

Open
HyphyPan opened this issue Jul 8, 2020 · 2 comments
Open

LeetCode plugin failed to initialize #594

HyphyPan opened this issue Jul 8, 2020 · 2 comments

Comments

@HyphyPan
Copy link

HyphyPan commented Jul 8, 2020

🐛 Bug Report

Leetcode failed to initialize.

Extension Output

v6.5.0
c:\Users\Administrator.vscode\extensions\leetcode.vscode-leetcode-0.17.0\node_modules\mkdirp\lib\opts-arg.js:7
opts = { mode: 0o777, fs, ...opts }
^^^
SyntaxError: Unexpected token ...
at Object.exports.runInThisContext (vm.js:76:16)
at Module._compile (module.js:528:28)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object. (c:\Users\Administrator.vscode\extensions\leetcode.vscode-leetcode-0.17.0\node_modules\mkdirp\index.js:1:79)
at Module._compile (module.js:556:32)
c:\Users\Administrator.vscode\extensions\leetcode.vscode-leetcode-0.17.0\node_modules\mkdirp\lib\opts-arg.js:7
opts = { mode: 0o777, fs, ...opts }
^^^
SyntaxError: Unexpected token ...
at Object.exports.runInThisContext (vm.js:76:16)
at Module._compile (module.js:528:28)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object. (c:\Users\Administrator.vscode\extensions\leetcode.vscode-leetcode-0.17.0\node_modules\mkdirp\index.js:1:79)
at Module._compile (module.js:556:32)
Error: Command "node "c:\Users\Administrator.vscode\extensions\leetcode.vscode-leetcode-0.17.0\node_modules\vsc-leetcode-cli\bin\leetcode",plugin,-i,company" failed with exit code "1".

Your Environment

  • os: Windows 10
  • extension settings:
  • nodejs version:v6.5.0
  • vscode version:1.46.1
  • extension version:v0.17.0
@yihong0618
Copy link
Contributor

@HyphyPan
Please use rm -rf ~/.lc/ and try to login again.

@HaiyangPeng
Copy link

Since your os is windows, you should delete the whole folder of .lc under your user path. It works for me.

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