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

Installation instructions don't work

Open hjrb opened this issue 1 month ago • 2 comments

Describe the bug

C:\Users\hreis>npm --version 11.6.2

C:\Users\hreis>nodes --version Der Befehl "nodes" ist entweder falsch geschrieben oder konnte nicht gefunden werden.

C:\Users\hreis>node --version v23.6.1

C:\Users\hreis>npm install -g @github/copilot

changed 1 package in 2s

C:\Users\hreis>copilot Der Befehl "copilot" ist entweder falsch geschrieben oder konnte nicht gefunden werden.

Powershell: PS C:\Users\hreis> npm install -g @github/copilot npm : Die Datei "C:\Program Files\nodejs\npm.ps1" kann nicht geladen werden. Die Datei "C:\Program Files\nodejs\npm.ps1" ist nicht digital signiert. Sie können dieses Skript im aktuellen System nicht ausführen. Weitere Informationen zum Ausführen von Skripts und Festlegen der Ausführungsrichtlinie erhalten Sie unter "about_Execution_Policies" (https:/go.microsoft.com/fwlink/?LinkID=135170).. In Zeile:1 Zeichen:1

  • npm install -g @github/copilot
  •   + CategoryInfo          : Sicherheitsfehler: (:) [], PSSecurityException
      + FullyQualifiedErrorId : UnauthorizedAccess
    
    

You know how to translate that.

nodejs folder is on the Windows system PATH. Maybe you should test that stuff once - at least.

Affected version

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

Additional context

No response

hjrb avatar Nov 18 '25 19:11 hjrb

Try quitting PowerShell and reopening. If the path has been updated, the shell needs to be reloaded.

thawkins avatar Nov 19 '25 23:11 thawkins

Not working.

hjrb avatar Nov 20 '25 07:11 hjrb

I had the same issue installing Copilot CLI today. The PATH had not been updated.

I'd installed NPM via Choco (choco install nodejs.install), but that install (unbeknownst to me) had not added the NPM global install location to my PATH environment variable. I added ~\AppData\Roaming\npm manually to my user PATH, and the copilot command worked. That path may differ for other NPM installs.

The installation of Copilot worked as expected:

Image

My issue was not having the NPM install location on my PATH.

jbeattie5768 avatar Dec 04 '25 13:12 jbeattie5768