Composer install error: env: php: No such file or directory

  composer-php, github, laravel

When I clone my Laravel project from GitHub to install it locally, I run into the following error in my terminal while running ‘composer install’ from within the project folder:

‘env: php: No such file or directory’

Anybody has a clue what’s causing this and how I can fix it? I found similar cases on this portal, but none was the same as mine and the suggested solutions didn’t work for me.

Source: Laravel

Leave a Reply