Closed cosmoswafer closed 1 year ago
Good catch. I just installed the latest nodejs version (v18.4.0) and the error is gone! I was kinda stuck with this for a while and didn't find any related issues, I was also using nodejs version 12!
Edit:
The n
module from npm is really great to change node versions. I found it on this post: https://askubuntu.com/a/480642
I think I had to uninstall the nodejs I installed via apt
, for coc to recognize the nodejs from n
(could also have been one of my vimrc settings on second thought). Otherwise works like a charm~
Interestingly, on my Arch-Linux system, the latest node version (v.18.6.0) does not work. Nor does 18.4.0 which worked on my other machine. Here I need to use node version 16 (v16.16.0) for this extension to not throw this error.
In my previous comment I was using KDE Neon, just for reference. This time I am on Arch Linux.
Edit: Turns out, my coc-sh was outdated. Seems to work now with node v.18.6.0!
Installed version is 0.7.0.
I've tried to remove and install again. Still the same. And the following is the output of
CocCommand workspace.showOutput
My system is Ubuntu 22.04 and it comes with the nodejs version 12. Should I upgrade it to version 16?