Skip to content

"command not found" after installation #113

Description

@qinhanlei

Hi,

I'm on macOS 14.7.5

~ % npm install -g @github/copilot

changed 5 packages in 2s
~ % copilot
zsh: command not found: copilot
~ %

According to claude code

bin % pwd
/usr/local/Cellar/node/24.6.0/bin
bin % which node
/usr/local/bin/node
bin % ll /usr/local/bin/claude
0 lrwxr-xr-x  1 qhl  staff    52B Aug 19 12:20 /usr/local/bin/claude -> ../lib/node_modules/@anthropic-ai/claude-code/cli.js
bin % ll /usr/local/bin/copilot
ls: /usr/local/bin/copilot: No such file or directory

I think copilot did not create a soft link during npm installation.

Activity

  1. added theissue type on Sep 29, 2025
  2. askpt commented on Sep 29, 2025

    @askpt

    @qinhanlei I needed to run these commands after installing node using brew.

    npm config set prefix /opt/homebrew/
    npm install -g @github/copilot

    Basically, I am saying that the npm packages should be installed in the /opt/homebrew, which is part of the terminal environment's PATH. You might need to select a different one.

  3. RyanHecht commented on Oct 5, 2025

    @RyanHecht
    Collaborator

    I'm going to close this issue under the assumption that this is an NPM config issue, and not a Copilot CLI issue. @qinhanlei, let us know if the above suggestion doesn't fix the issue for you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions