'neovim [coc.nvim] build/inderx.js not found, please install dependencies and compile coc.nvim : yarn install

I trying to build, yarn build but it shows me

yarn run v1.22.17
error Couldn't find a package.json file in "/home/darth/.config/nvim/plug-config"
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.


Solution 1:[1]

You should run yarn install in coc.nvim directory.

Solution 2:[2]

The error is due to the fact that COC is missing some dependencies to function.

  • Navigate to the directory \nvim\plugged\coc.nvim
  • Use your package manager: npm install or yarn install

Restart your VIM or NEOVIM.

Solution 3:[3]

use release branch if you dont want to build over and over again.

Solution 4:[4]

resolved on mac by npm install

check the correct path:

cd ~/.vim/bundle/coc.nvim . cd: no such file or directory: /Users/pawankumar/.vim/bundle/coc.nvim

cd ~/.vim/plugged/coc.nvim/

npm install

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 fannheyward
Solution 2 Matthew Rankin
Solution 3 wij
Solution 4 Pawan Kumar