Skip to content

Not compatible with neovide. Throw error:"copilot copilot_node_comman(node) is not executable" #158

Answered by MunifTanjim
GinmusWJQ asked this question in Q&A
Discussion options

You must be logged in to vote

Neovide doesn't have access to node executable. That's why it's showing the error.

Is Neovide installed inside WSL or outside? Make sure Node.js is installed in the same environment.

How are you launching Neovide?

Either make sure it has access to the node executable (via path environment variable).

Or specify full path to Node.js executable to copilot_node_command in setup:

{
  "zbirenbaum/copilot.lua",
  cmd = "Copilot",
  build = ":Copilot auth",
  opts = {
    suggestion = { enabled = false },
    panel = { enabled = false },

    copilot_node_command = "/path/to/node"
  },
}

@GinmusWJQ

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MunifTanjim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #157 on April 30, 2023 16:42.