Home > database >  zsh: command not found: mv (I'm trying to move composer.phar)
zsh: command not found: mv (I'm trying to move composer.phar)

Time:02-02

I'm trying to follow a course on Udemy (laravel). I just downloaded XAMPP (I'm on macOS Monterey) and I edited the ~/.zshrc file and added export PATH=/Applications/XAMPP/bin

After that I installed composer which worked successfully, but now when I try to run this command: mv composer.phar /usr/local/bin/composer the shell responds with: zsh: command not found: mv.

Does anyone know how to fix this?

CodePudding user response:

The file mv was not found in your PATH, is your PATH variable setup correctly? Enter echo $PATH to see your PATH variable.

Try /bin/mv to see if the binary file exists.

  •  Tags:  
  • Related