coc-tsserver: Can not find tsserver error on 1.3.8
It appears that the 1.3.8 release has broken coc-tsserver for me:
The output of :CocInfo on 1.3.8:
## versions
vim version: NVIM v0.3.5
node version: v12.2.0
coc.nvim version: 0.0.71-4ee27ce232
term: screen-256color
platform: linux
## Messages
[coc.nvim] Bundled typescript module not found
[coc.nvim] Can not find tsserver, run ':CocInstall coc-tsserver' to fix it!
This happens when I open a JS file using nvim test.js
I have tried to do :CocInstall coc-tsserver to no avail.
Using vim-plug also does not solve the problem:
Plug 'neoclide/coc-tsserver', {'tag': '1.3.8', 'do': 'yarn install --frozen-lockfile'}
On downgrade to 1.3.7 using vim-plug the error does not appear and the extension works flawlessly:
Plug 'neoclide/coc-tsserver', {'tag': '1.3.7', 'do': 'yarn install --frozen-lockfile'}
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 17 (5 by maintainers)
hi @steelx , I had same error (with
coc-sh), it was the installer Uninstallnodefromsnapsudo snap remove nodeand install it throughapt-get(or.tar,… official link)sudo apt-get install nodejsWith
snapand:CocInstall {whatever}thecoc.nviminstaller reports:Using npm from: /snap/bin/npmWhile withapt-getand:CocInstall {whatever}:Using npm from: /usr/local/bin/yarnpkgOr ifapt-getinstallednpmsudo apt install npmthen it showsUsing npm from: /usr/bin/npmFixed on 1.3.9
Cleaning cache fixed the issue
I encounter the same problem, here is the log
Log shows it got errors when installing typescript, and after I googled some pages, I fixed the problem by cleaned the npm cache. If you guys encounter same problem maybe have a try: