Cannot install tsserver LSP #1558
-
Hello, I have been trying to install tsserver lsp with Mason but failed to do so. Every time i try to install lsp i get the same error: [ERROR st 15 lis 15:45:14 2023] ...e/nvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:249: Installation failed for Package(name=typescript-language-server) error=spawn: npm failed with exit code 1 and signal 0. Do you guys know where lies the problem or what am i missing here? My Mason conf is from zero-lsp docs and my spec are below. OS: macOS Sonoma 14.0 Neovim: 0.9.4 And the rest:
also, i have installed everything with brew if that helps.. Thanks in advance! EDIT 1: I have added output of checkhealth mason below.
EDIT 2: Found the solution. Run the nvim with sudo priviliges. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Ok, i found the problem and the solution. Problem was that Mason was launching npm without root privileges and because of that installation failed. Solution was to launch nvim with sudo...then install ran perfectly fine. Do i have problem on my side or is this normal behaviour that i did not know about? |
Beta Was this translation helpful? Give feedback.
Ok, i found the problem and the solution.
Problem was that Mason was launching npm without root privileges and because of that installation failed.
Solution was to launch nvim with sudo...then install ran perfectly fine.
Do i have problem on my side or is this normal behaviour that i did not know about?