通过 npm 安装后找不到作曲家版本

can't find composer version after installing via npm

当我运行

% npm install composer 

我收到:

+ composer@4.1.0
updated 1 package and audited 901678 packages in 9.221s

37 packages are looking for funding
  run `npm fund` for details

found 9 high severity vulnerabilities
  run `npm audit fix` to fix them, or `npm audit` for details

然而,当我 运行:

% composer -v

我收到:

zsh: command not found: composer

.zshrc

中手动添加 composer vendor bin 路径
export PATH="$PATH:$HOME/.composer/vendor/bin"

/usr/local/bin

中创建一个 符号链接

请运行这个brew install composer