1

I'm trying to setup coc for nvim on my Windows os. I installed coc via vim-plug and have the coc.nvim config sourced in my main init.vim file. I recieve these messages when I open neovim and run :checkhealth

coc: health#coc#check 3 ======================================================================== 4 - OK: nvim version satisfied 5 - ERROR: Unable to detect version of node, make sure your node executable is http://nodejs.org/ 6 - ERROR: Javascript entry not found, please compile coc.nvim by esbuild. 7 - ERROR: service could not be initialized 8 - ADVICE: 9 - Use command ":messages" to get error messages. 10 - Open a issue at https://github.com/neoclide/coc.nvim/issues for feedback. 11

I have tried reinstalling node, going to coc.nvim directory and using npm install as well as yarn install (as directed to when I ran :messages after getting errors with :checkhealth). However when I ran yarn build (also directed to when I ran :messages) it said build was not a command of yarn. I’ve searched through other questions and github issues which have been solved by doing the above but none of it has worked here.

1
  • I am running into the same problem apparently. Have you found a solution? Commented Apr 12, 2023 at 9:31

1 Answer 1

0

I ran into this problem recently and in my case, it actually turned out it was caused by improper extra quoting in the commands nvim was trying to run (so basically, it was passing the command node --version to the system as a single command name, rather than a command and an option flag). I changed my init.vim file to set both available quote options to empty strings and it fixed the issue:

set shellquote=
set shellxquote=
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.