Mason Failed to Install Language Server in Neovim
Workaround available Windows, macOS, Linux Updated October 21, 2026
Quick answer
mason.nvim downloads servers using external tools (npm, pip, cargo, go, curl, unzip). If one is missing or misconfigured, installs fail. Check :checkhealth mason and :MasonLog for the missing tool.
Most likely fix: Read the real error.
Symptoms
Red 'failed' status in :Mason, or servers like pyright, tsserver or bashls never installing.
Why it happens
- Node/npm not installed or not on the PATH Neovim sees
- Missing runtime (cargo, go, python venv, unzip)
- npm pointing to a private/work registry
- Partial system update leaving broken runtimes
How to fix it
Try these in order — the most common fix is first.
1. Read the real error
- Run :MasonLog and find the failing command
- Run :checkhealth mason and fix every 'not executable' warning
2. Install the missing runtime
- Install Node via nvm/fnm or your package manager for npm-based servers
- Install cargo/go/python3-venv/unzip as the log requires
- Restart Neovim so PATH is refreshed, then retry in :Mason with i
3. Check npm registry
- Run npm config get registry
- If it points to a private registry, reset it or set Mason's npm install_args
4. Install the server manually
- Install it yourself (e.g. npm i -g pyright)
- Enable it with vim.lsp.enable('pyright') — Mason isn't required
This guide also covers
- mason failed to install
- mason nvim npm not found
- mason lsp install error
Still not working?
If Neovim keeps failing, you're not alone. See every Neovim problem users report or the alternatives people switch to.
Other Neovim errors
- Neovim LSP Not Working or Not Attaching
- require('lspconfig') Is Deprecated Warning in Neovim
- Neovim Treesitter Highlighting Not Working
- Neovim Clipboard Not Working (clipboard: No provider)
- Neovim Colors Wrong in tmux
- Neovim Escape Key Delay in tmux
- Why Is Neovim So Slow? (Startup Lag and Large Files)
- Neovim Autocomplete Not Working (blink.cmp / nvim-cmp)
- Neovim Config Broke After Updating to 0.12
- Neovim Python Provider Not Working (pynvim)