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
After updating today over the weekend, getting this error, this has always worked for me
Current config:
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