Skip to content

vtsls (lazyextra typescript) is not in correct place #1981

Closed Answered by ahsanu123
ahsanu123 asked this question in Q&A
Discussion options

You must be logged in to vote

Ok I am back with solution. (Disclaimer i am noob linux user).

Note:

  • mason will use difference script based on your os to run lsp/bin ( i run on WSL 2)
For example this pyright 
~/.local/share/nvim/mason/packages/pyright/node_modules/.bin ⌚ 10:51:28
$ ls
pyright      pyright-langserver      pyright-langserver.ps1   
pyright.cmd  pyright-langserver.cmd  pyright.ps1
  • this vtsls also occur for pyright

way to solve

to solve this vtsls / pyright cant find module

[ERROR][2025-07-29 09:29:19] ...p/_transport.lua:36	"rpc"	"pyright-langserver"	"stderr"
"node:internal/modules/cjs/loader:1372\n  throw err;\n  ^\n\nError: Cannot find module 
'/home/ah/.local/share/nvim/mason/pyright/langserver.ind…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ahsanu123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant