У меня «два» NeoVim, один на Windows (pwsh), а другой на WSL (ubuntu). В Windows все работает нормально — я могу без проблем установить такие инструменты, как stylua и clangd. Или, по крайней мере, у меня никогда не возникало никаких проблем.
Но внутри WSL Мейсону не удается их установить, хотя у меня уже есть Curl.
Это моя конфигурация Windows, когда я делаю :checkhealth
Код: Выделить всё
mason.nvim ~
- ✅ OK mason.nvim version v2.1.0
- ✅ OK PATH: prepend
- ✅ OK Providers:
mason.providers.registry-api
mason.providers.client
- ✅ OK neovim version >= 0.10.0
mason.nvim [Registries] ~
- ✅ OK Registry `github.com/mason-org/mason-registry version: 2025-10-27-excited-anger` is installed.
mason.nvim [Core utils] ~
- ⚠️ WARNING unzip: not available
- ADVICE:
- spawn: unzip failed with exit code - and signal -. Could not find executable "unzip" in PATH.
- ⚠️ WARNING wget: not available
- ADVICE:
- spawn: wget failed with exit code - and signal -. Could not find executable "wget" in PATH.
- ✅ OK curl: `curl 8.9.1 (Windows) libcurl/8.9.1 Schannel zlib/1.3 WinIDN
`
- ⚠️ WARNING gzip: not available
- ADVICE:
- spawn: gzip failed with exit code - and signal -. Could not find executable "gzip" in PATH.
- ✅ OK tar: `bsdtar 3.7.2 - libarchive 3.7.2 zlib/1.2.5.f-ipp liblzma/5.4.3 bz2lib/1.0.8 libzstd/1.5.4
`
- ❌ ERROR pwsh: not available
- ADVICE:
- spawn: pwsh failed with exit code - and signal -. Could not find executable "pwsh" in PATH.
- ⚠️ WARNING 7z: not available
- ADVICE:
- spawn: 7z failed with exit code - and signal -. Could not find executable "7z" in PATH.
Код: Выделить всё
mason.nvim ~
- ✅ OK mason.nvim version v2.1.0
- ✅ OK PATH: prepend
- ✅ OK Providers:
mason.providers.registry-api
mason.providers.client
- ✅ OK neovim version >= 0.10.0
mason.nvim [Registries] ~
- ✅ OK Registry `github.com/mason-org/mason-registry version: 2025-10-27-excited-anger` is installed.
mason.nvim [Core utils] ~
- ⚠️ WARNING unzip: not available
- ADVICE:
- spawn: unzip failed with exit code - and signal -. Could not find executable "unzip" in PATH.
- ✅ OK wget: `GNU Wget 1.21.4, a non-interactive network retriever.`
- ✅ OK curl: `curl 8.5.0 (x86_64-pc-linux-gnu) libcurl/8.5.0 OpenSSL/3.0.13 zlib/1.3 brotli/1.1.0 zstd/1.5.5 libidn2/2.3.7 libpsl/0.21.2 (+libidn2/2.3.7) libssh/0.10.6/openssl/zlib nghttp2/1.59.0 librtmp/2.3 OpenLDAP/2.6.7`
- ✅ OK gzip: `gzip 1.12`
- ✅ OK tar: `tar (GNU tar) 1.35`
- ✅ OK bash: `GNU bash, version 5.2.21(1)-release (x86_64-pc-linux-gnu)`
- ✅ OK sh: `Ok`
Подробнее здесь: https://stackoverflow.com/questions/798 ... -on-my-wsl
Мобильная версия