neoclide / coc.nvim

Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
Other
24.47k stars 955 forks source link

build/index.js not found, please install dependencies and compile coc.nvim by: yarn install #4292

Closed Claude-White closed 2 years ago

Claude-White commented 2 years ago

Everytime I open Neovim, I get this error. I was wordering if someone could help me pls?

Screen Shot 2022-10-15 at 8 27 27 PM
fannheyward commented 2 years ago

You didn't install coc.nvim successfully, use release branch is recommend. If you want you use master branch, make sure you have yarnpkg installed. Check https://github.com/neoclide/coc.nvim/wiki/Install-coc.nvim#add-cocnvim-to-vims-runtimepath

pandasoli commented 1 year ago

@fannheyward I got the same issue. I'm using vim (not neovim) and I installed the release branch

chemzqm commented 1 year ago

I installed the release branch

When you get that message, it means you're not using release branch or the necessary javascript file was moved.

tvannahl commented 1 year ago

FYI: I ran into the same issue after upgrading my plugins.

I'm using the package manager dein and it seem the configuration there did change.

I did remove my current installation of coc from my dein cache and adjusted the configuration as follows:

-  call dein#add('neoclide/coc.nvim', {'branch': 'release'})
+  call dein#add('neoclide/coc.nvim', {'rev': 'release'})

It fixed the issue for me.

troystauffer commented 6 months ago

I was using Vundle, which as far as I can tell ignores the specified branch/rev. Once I switched to vim-plug, this error went away.