neovim [coc.nvim] build/inderx.js 未找到,请安装依赖项并编译 coc.nvim :yarn install

Dar*_*age 10 javascript node.js neovim

我尝试构建,纱线构建,但它向我展示了

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.
Run Code Online (Sandbox Code Playgroud)

小智 25

我通过在 nevoim 上运行以下命令解决了错误。

:call coc#util#install()
Run Code Online (Sandbox Code Playgroud)


小智 9

该错误是由于 COC缺少一些运行依赖项造成的。

  • 导航至目录\nvim\plugged\coc.nvim
  • 使用您的包管理器:npm installyarn install

重新启动您的VIMNEOVIM

  • 在 macOS 中位于 `~/.vim/bundle/coc.nvim` (4认同)

fan*_*ard 6

您应该yarn install在 coc.nvim 目录中运行。