You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

解决mason.nvim的[Core Utils]警告及pyright安装失败问题求助

解决mason.nvim的[Core Utils]警告及pyright安装失败问题求助

大家好,我最近尝试用mason.nvim安装pyright时遇到了麻烦,安装一直失败,具体错误日志如下:

Failed

ڌ pyright

▼ Displaying full log

spawn: npm.cmd failed with exit code - and signal -. npm.cmd is not executable

一开始我查到pyright需要依赖Node.js,于是赶紧安装了Node.js,但问题还是没解决。之后我运行:Mason和:checkhealth命令,看到了一堆警告和错误,整理出来给大家看看:

mason.nvim [Core utils] 检查结果

  • WARNING unzip: not available
    • ADVICE:
      • spawn: unzip failed with exit code - and signal -. unzip is not executable
  • WARNING wget: not available
    • ADVICE:
      • spawn: wget failed with exit code - and signal -. wget is not executable
  • OK curl: curl 8.0.1 (Windows) libcurl/8.0.1 Schannel WinIDN
  • WARNING gzip: not available
    • ADVICE:
      • spawn: gzip failed with exit code - and signal -. gzip is not executable
  • OK tar: bsdtar 3.5.2 - libarchive 3.5.2 zlib/1.2.5.f-ipp bz2lib/1.0.6
  • ERROR pwsh: not available
    • ADVICE:
      • spawn: pwsh failed with exit code - and signal -. pwsh is not executable
  • WARNING 7z: not available
    • ADVICE:
      • spawn: 7z failed with exit code - and signal -. 7z is not executable

mason.nvim [Languages] 检查结果

  • WARNING Go: not available
    • ADVICE:
      • spawn: go failed with exit code - and signal -. go is not executable
  • WARNING cargo: not available
    • ADVICE:
      • spawn: cargo failed with exit code - and signal -. cargo is not executable
  • WARNING luarocks: not available
    • ADVICE:
      • spawn: luarocks failed with exit code - and signal -. luarocks is not executable
  • WARNING Ruby: not available
    • ADVICE:
      • spawn: ruby failed with exit code - and signal -. ruby is not executable
  • WARNING RubyGem: not available
    • ADVICE:
      • spawn: gem.cmd failed with exit code - and signal -. gem.cmd is not executable
  • WARNING Composer: not available
    • ADVICE:
      • spawn: composer.bat failed with exit code - and signal -. composer.bat is not executable
  • WARNING PHP: not available
    • ADVICE:
      • spawn: php failed with exit code - and signal -. php is not executable
  • WARNING npm: not available
    • ADVICE:
      • spawn: npm.cmd failed with exit code - and signal -. npm.cmd is not executable
  • WARNING node: not available
    • ADVICE:
      • spawn: node failed with exit code - and signal -. node is not executable
  • WARNING javac: not available
    • ADVICE:
      • spawn: javac failed with exit code - and signal -. javac is not executable
  • WARNING julia: not available
    • ADVICE:
      • spawn: julia failed with exit code - and signal -. julia is not executable

另外还有WhichKey的按键冲突提示:

WhichKey: checking conflicting keymaps ~

  • WARNING conflicting keymap exists for mode "n", lhs: "gc"
  • rhs:
  • WARNING conflicting keymap exists for mode "n", lhs: "gb"
  • rhs:

最让我摸不着头脑的是那个pwsh的ERROR——我明明就是在PowerShell里运行nvim的,为什么会提示pwsh不可用呢?有没有大佬能帮忙分析下这些问题该怎么解决,尤其是pyright安装失败的核心问题,谢谢大家!

备注:内容来源于stack exchange,提问作者Ruan Carlo Weiers Britzke

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.22 08:43:13