:MasonInstall pyright - spawn: npm failed with exit code - and signal - . npm is not executable. #674
-
|
Hello! Relatively new Neovim user here and first-time user of Mason. I'm attempting to install a new language server using I have |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
|
Hello! Do you by chance use volta to manage Node & npm? There's been some reports that it's not compatible. I've yet to investigate what exactly volta does in more detail (I believe they shim executables somehow). Mason only expects the Does the following vim commands produce anything? :echo exepath("node")
:echo exepath("npm") |
Beta Was this translation helpful? Give feedback.
-
|
it works :) |
Beta Was this translation helpful? Give feedback.
-
|
I had the same issue while running the flatpak version of Neovim (see; https://github.com/neovim/neovim/wiki/Installing-Neovim#flatpak). |
Beta Was this translation helpful? Give feedback.
-
|
I also faced the issue. I was using fvm(nvm just re written on Rust) and forgot to use version. So after I select version to use and restart my terminal the version was inherit from the shell's environment and successfully applied. |
Beta Was this translation helpful? Give feedback.
Hello! Do you by chance use volta to manage Node & npm? There's been some reports that it's not compatible. I've yet to investigate what exactly volta does in more detail (I believe they shim executables somehow).
Mason only expects the
nodeandnpmexecutables to be available in the neovim session'sPATH- so whatever you use to manage these shouldn't really matter, so I'd really be interested in knowing what volta does differently.Does the following vim commands produce anything?