Skip to content

Could not determine Node.js version #538

Description

@neonvoidx

After updating today over the weekend, getting this error, this has always worked for me

[Copilot.lua] Could not determine Node.js version
-----------
(exit code) -1
   (output) [no output]
-----------

Current config:

  {
    "zbirenbaum/copilot.lua",
    event = "InsertEnter",
    opts = {
      filetypes = { markdown = false, help = false },
      copilot_node_command = vim.fn.expand("$FNM_DIR") .. "/node-versions/v22.13.0/installation/bin/node",
    },
  },

Output of vim.fn.expand("$FNM_DIR") .. "/node-versions/v22.13.0/installation/bin/node":
/Users/jrreed/Library/Application Support/fnm/node-versions/v22.13.0/installation/bin/node

 ls '/Users/jrreed/Library/Application Support/fnm/node-versions/v22.13.0/installation/bin/'
 corepack   mmdc   node   npm   npx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions