【VScode和Leecode的爱恨情仇】command ‘leetcode.signin‘ not found

这篇具有很好参考价值的文章主要介绍了【VScode和Leecode的爱恨情仇】command ‘leetcode.signin‘ not found。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

一、关于command ‘leetcode.signin‘ not found的问题

二、解决方案

command 'leetcode: sign in' resulted in an error,vscode,leecode,vscode,leetcode,ide
会进入到LeeCode设置中:
@ext:LeetCode.vscode-leetcode
command 'leetcode: sign in' resulted in an error,vscode,leecode,vscode,leetcode,ide
凡是连接Leecode连接不上的检查一下原因:

第一,没有下载Nodejs;

去官网下载一下,具体安装配置百度一下

第二,有没有在VScode中配置Nodejs

画中点:node.exe结尾的配置
command 'leetcode: sign in' resulted in an error,vscode,leecode,vscode,leetcode,ide

第三,力扣的默认在VScode请求地址中请求头错误

command 'leetcode: sign in' resulted in an error,vscode,leecode,vscode,leetcode,ide

首先搞定配置

我解决方案是:手动编辑
command 'leetcode: sign in' resulted in an error,vscode,leecode,vscode,leetcode,ide
首先手动点击编辑文本
然后修改

# 第一次修改根据官网进行的修改:"leetcode.endpoint": "leetcode.cn",
# 修改完之后强制保存,会发现setting.json一直爆粗提示没有这个选项,
# 之后采用已有选项中文--》LeetCode-cn  发现请求网址是leetcode.cn,如果配置后发现依然请求不通,可以配置之后重启VScode试下
"leetcode.endpoint": "leetcode-cn",

command 'leetcode: sign in' resulted in an error,vscode,leecode,vscode,leetcode,ide

对会提示报错,但是不重要,重点是这个时候你可以再左侧看到
command 'leetcode: sign in' resulted in an error,vscode,leecode,vscode,leetcode,ide

其次搞定登入

登入方法一:

进入到下面页面之后点击登入,
command 'leetcode: sign in' resulted in an error,vscode,leecode,vscode,leetcode,ide

登入方法二

顺便说一下如果有人界面出不来,可以采用两一种方法登入:
command 'leetcode: sign in' resulted in an error,vscode,leecode,vscode,leetcode,ide

打开面板:输入:

>LeetCode: Sign In

command 'leetcode: sign in' resulted in an error,vscode,leecode,vscode,leetcode,ide

登入可以采用:手机号+密码;手机号+Cookie
我选择的方式是Cookie登入,首先输入账号,LeetCode注册的手机号,然后进入首页https://leetcode.cn/
打开控制台,点击题库,找到请求为all的接口,找到请求中的Cookie,command 'leetcode: sign in' resulted in an error,vscode,leecode,vscode,leetcode,ide

登入成功就可以看到如下拉去的数据成功:
command 'leetcode: sign in' resulted in an error,vscode,leecode,vscode,leetcode,ide
或者右下角也会有提示登入成功,再或者查看左下角账号名字如果登入成功这两个插件左下角我画框的地方都会有你对应账号登入名的显示,** 采用Cookie一定要在页面先登入哈~~~ **
command 'leetcode: sign in' resulted in an error,vscode,leecode,vscode,leetcode,ide

我遇到了另一个问题就是登入成功按时左侧栏不显示,于是我下载了另一个插件:
command 'leetcode: sign in' resulted in an error,vscode,leecode,vscode,leetcode,ide
在上面的官方LeetCode配置登入成功之后
我进行了下面的安装
command 'leetcode: sign in' resulted in an error,vscode,leecode,vscode,leetcode,ide
此处登入注意看提示采用的是邮箱+Cookie
登入成功后可以看到对应题库–》** 划重点根据难易程度归类区分的,左侧边栏课件题库哦 **~~
command 'leetcode: sign in' resulted in an error,vscode,leecode,vscode,leetcode,ide

解决一下已经登入但是无法再侧边栏展示的问题:

nodejs其他各版本下载地址

我这边的问题暂时是这样的,明显可以看到登入成功,控制台输出获取到的题库:
但是提示警告如下:

(node:13088) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)

command 'leetcode: sign in' resulted in an error,vscode,leecode,vscode,leetcode,ide
重新卸载nodejs-20.10.0版本重新安装
然后发现npm版本不匹配
去找对应关系重新安装npm
command 'leetcode: sign in' resulted in an error,vscode,leecode,vscode,leetcode,ide
降级nodejs之后npm可能会操作报错如下:
command 'leetcode: sign in' resulted in an error,vscode,leecode,vscode,leetcode,ide
属于nodejs和npm版本对照不匹配:制定npm版本安装就可以了,对照参考
官网的nodejs和npm版本对照
command 'leetcode: sign in' resulted in an error,vscode,leecode,vscode,leetcode,ide
我大概看了一下属于版本不匹配问题:
command 'leetcode: sign in' resulted in an error,vscode,leecode,vscode,leetcode,ide

解决方案就是降级nodejs版本

我尝试安装了两个版本,19版本依然无效,采用V18版本,我这边可以正常显示,安装软件版本时间和插件时间距离更新此文档时间前后通步,不排除其他问题,具体根据你的版本安装自行调测

第四、讨论区

如果你有什么其他问题可以留言给我,我试着看看是否可以找到解决方案~大家一起学习讨论哦文章来源地址https://www.toymoban.com/news/detail-805830.html

到了这里,关于【VScode和Leecode的爱恨情仇】command ‘leetcode.signin‘ not found的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • bash: cmake: command not found...+++++++lsb_release: command not found

    centos中安装那个cmake。 1、问题 当前系统: 也可能会遇到 lsb_release: command not found 遇到此问题详见 二. bash: lsb_release: command not found错误的解决方法 2、安装cmake 3、测试效果 转载后的博文 -bash: lsb_release: command not found 就是 lsb_release命令没有安装 通过搜索,找到下面文章,文章中

    2024年02月09日
    浏览(29)
  • 一次bash: docker: command not found bash: yum: command not found的解决

    周青的日常问题记录 学习硅谷电商毕设项目_微服务版本,建站练手,在测试mysql中docker exec进入容器sql语句 docker exec bash后用q退出mysql 再运行bash命令继续操作docker发现命令失效 想service docker start启动docker但是 把服务器重启了一下,到这一步还是不行。 找了找办法要卸载重装

    2024年01月18日
    浏览(41)
  • 成功解决/bin/sh: cc: command not found和/bin/sh: g++: command not found

    成功解决/bin/sh: cc: command not found和/bin/sh: g++: command not found 目录 解决问题 解决思路 解决方法 make: cc: Command not found /bin/sh: cc: command not found expr: syntax error expr: syntax error make: cc: Command not found I llama.cpp build info: I UNAME_S:   Linux I UNAME_P:   x86_64 I UNAME_M:   x86_64 I CFLAGS:    -I. -Icommo

    2024年02月04日
    浏览(38)
  • Mac command not found

    记录一些 Mac上遇到一些问题: 电脑更新后,不知道怎么环境出现了一些问题, 想安装serve,自己打包后,启动服务,但是npm i serve -g   ,就是报 command not found source ~/.bash_profile   保存环境变量后没有生效 原因:zsh和bash有别, zsh模式不执行上述脚本,bash模式才执行 zsh、ba

    2024年01月18日
    浏览(46)
  • systemctl: command not found

    在查看防火墙状态是报命令找不到错误 说明:service与systemctl语法使用不一样,这里只列举防火墙相关语法。 百度一番之后发现centos 使用 service 命令替代systemctl 在7版本以前或者没有安装systemclt的minimal版本,可以使用service控制防火墙 systemctl相关命令 参考: https://blog.csdn.n

    2024年02月09日
    浏览(32)
  • python: command not found

    通过管道传入 sed -e \\\'s/python/python3/\\\' 指令,如: 在这个例子中, sed \\\'s/python/python3/g\\\' 命令会找到每一个 “python” 字样,并把它替换成 “python3”。 s 代表替换操作 g 代表全局替换 同理,假设你有一个命令 command1,它的输出中包含了 “python”,你希望将 “python” 替换为 “py

    2024年02月06日
    浏览(35)
  • Electron Apple SignIn 登录

    本人写博客,向来主张:代码要完整,代码可运行,文中不留下任何疑惑。 最讨厌写博客,代码只留下片段,文中关键的东西没写清楚。之前看了那么多文章,就是不告诉我clientId从哪来的。 官方资料地址: Sign in with Apple JS | Apple Developer Documentation clientId:这个会在下文中告

    2024年01月19日
    浏览(23)
  • macos出现command not found

    如果在macos中,安装了命令行工具,或者说,配置好了相关环境变量之后,重新启动终端或者电脑,又出现command not found的报错。 假设我们现在安装了mvn命令,并且在当前用户目录下的.bash_profile文件中设置了环境变量,并且使用source .bash_profile加载了配置。首先我们要了解一

    2024年02月05日
    浏览(34)
  • Jenkins 报错: command not found

    主要是路径问题,Jenkins无法识别 在一台 macOS 的 anget 中,我们的 pipeline 脚本一直报错:cmake: command not found,但实际系统中已经通过 brew 安装过 cmake。并且在系统中通过使用命令 cmake --version 也能显示正常版本。那是不是 cmake 所在的目录并不在 Jenkins agent 的环境变量中呢? 由

    2024年02月08日
    浏览(34)
  • 解决 zsh:command not found

    一、原因 最新系统的macbook把zsh作为默认shell,而环境变量添加到了bash中,把 bash shell 中.bash_profile 全部环境变量加入zsh shell里就可以啦 二、解决办法 1、打开终端,然后输入下面命令,查看.bash_profile的配置,复制 2、然后输入下面命令打开.zshrc,把刚才.bash_profile复制的内容

    2024年02月10日
    浏览(42)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包