解决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
- ADVICE:
- WARNING wget: not available
- ADVICE:
- spawn: wget failed with exit code - and signal -. wget is not executable
- ADVICE:
- 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
- ADVICE:
- 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
- ADVICE:
- WARNING 7z: not available
- ADVICE:
- spawn: 7z failed with exit code - and signal -. 7z is not executable
- ADVICE:
mason.nvim [Languages] 检查结果
- WARNING Go: not available
- ADVICE:
- spawn: go failed with exit code - and signal -. go is not executable
- ADVICE:
- WARNING cargo: not available
- ADVICE:
- spawn: cargo failed with exit code - and signal -. cargo is not executable
- ADVICE:
- WARNING luarocks: not available
- ADVICE:
- spawn: luarocks failed with exit code - and signal -. luarocks is not executable
- ADVICE:
- WARNING Ruby: not available
- ADVICE:
- spawn: ruby failed with exit code - and signal -. ruby is not executable
- ADVICE:
- WARNING RubyGem: not available
- ADVICE:
- spawn: gem.cmd failed with exit code - and signal -. gem.cmd is not executable
- ADVICE:
- WARNING Composer: not available
- ADVICE:
- spawn: composer.bat failed with exit code - and signal -. composer.bat is not executable
- ADVICE:
- WARNING PHP: not available
- ADVICE:
- spawn: php failed with exit code - and signal -. php is not executable
- ADVICE:
- WARNING npm: not available
- ADVICE:
- spawn: npm.cmd failed with exit code - and signal -. npm.cmd is not executable
- ADVICE:
- WARNING node: not available
- ADVICE:
- spawn: node failed with exit code - and signal -. node is not executable
- ADVICE:
- WARNING javac: not available
- ADVICE:
- spawn: javac failed with exit code - and signal -. javac is not executable
- ADVICE:
- WARNING julia: not available
- ADVICE:
- spawn: julia failed with exit code - and signal -. julia is not executable
- ADVICE:
另外还有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
相关产品推荐
相关产品推荐

