vs code安装leetcode插件
阅读原文时间:2023年07月10日阅读:1

vs code 安装不成功啊

1.首先确保有node.js 10+,没有的话去官网下载,安装就可以,安装好之后在cmd命令行中输入:

node -v

 若出现相关版本信息说明安装成功

2.由于leetcode插件底层是使用的leetcode-cli命令行工具,所以我们需要现在本地保证我们的命令行工具的版本正确。我们通过npm工具安装最新版本的leetcode-cli:

# to remove the old version
npm uninstall -g leetcode-cli

to install the up-to-date version(2.6.17+)

npm install -g leetcode-tools/leetcode-cli

3.安装leetcode插件。

4.如果国际版,尽量使用cookie登录,具体实现结果如下:

https://juejin.cn/post/6844904105782018055

手机扫一扫

移动阅读更方便

阿里云服务器
腾讯云服务器
七牛云服务器