copilot-cli icon indicating copy to clipboard operation
copilot-cli copied to clipboard

wsl copilot: command not found

Open sixi0828 opened this issue 3 months ago • 5 comments

Describe the bug

zh@LAPTOP-C1VVMM:~$ npm install -g @github/copilot

changed 5 packages in 900ms zh@LAPTOP-C1VVMM:~$ copilot copilot: command not found

Affected version

lastest

Steps to reproduce the behavior

npm install -g @github/copilot copilot

Expected behavior

copilot: command not found

Additional context

node.js:v22.17.0

sixi0828 avatar Sep 27 '25 07:09 sixi0828

Out of curiosity: do you still see this issue even after restarting your terminal? I just ask because the Copilot CLI is added to your PATH using the standard NPM installation. So it'd be great to confirm if the "copilot" command is never available, or if it just required a new terminal session to pick it up.

lostintangent avatar Sep 27 '25 22:09 lostintangent

Out of curiosity: do you still see this issue even after restarting your terminal? I just ask because the Copilot CLI is added to your PATH using the standard NPM installation. So it's be great to confirm if the "copilot" command is never available, or it just required a new terminal session to pick it up.

Yes, the issue still persists even after restarting the terminal. I have installed the latest version of the Copilot CLI. Thank you for your attention.

sixi0828 avatar Sep 28 '25 01:09 sixi0828

Hmm OK thanks for confirming that. Could you also confirm that you can install other Node based CLIs, and that you see their respective commands in your PATH?

lostintangent avatar Sep 28 '25 02:09 lostintangent

Yes, I can use Gemini cli at present.

---Original--- From: "Jonathan @.> Date: Sun, Sep 28, 2025 11:00 AM To: @.>; Cc: "Zhao Hao @.@.>; Subject: Re: [github/copilot-cli] wsl copilot: command not found (Issue #88)

lostintangent left a comment (github/copilot-cli#88)

Hmm OK thanks for confirming that. Could you also confirm that you can install other Node based CLIs, and that you see their respective commands in your PATH?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

sixi0828 avatar Sep 28 '25 03:09 sixi0828

Same issue... windows 11

node --version
v24.8.0

npm --version
11.6.0

copilot
copilot: The term 'copilot' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Restarted Windows Terminal, Tried in cmd, Tried in pwsh7. Tried uninstalling global package and reinstalling and still not working.


FIXED...

My installation of nodejs and npm did NOT have ~\AppData\Roaming\npm added to PATH. So copilot CLI was not being picked up.

pjmagee avatar Oct 25 '25 10:10 pjmagee