1

enter image description here

I want to edit my composer.json for adding html ad forms package. But after editing, when I update my composer through command composer update, it gave me an error in the terminal:

bash command not found

What could be wrong?

wogsland
  • 9,106
  • 19
  • 57
  • 93
Shafi
  • 21
  • 3

2 Answers2

1

You can follow below steps:

  • You can run composer command in your terminal and check composer installed or not.

  • If composer not installed then run below command in your terminal.

  curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer

Or

if another issue then follow this link (Laravel PHP Command Not Found)

Hope this helps you!

Community
  • 1
  • 1
AddWeb Solution Pvt Ltd
  • 21,025
  • 5
  • 26
  • 57
-1

It seems you've not installed composer globally.

read the following:

https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx

Awolad Hossain
  • 1,007
  • 13
  • 18