This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Mathilde Escher Stiftung
Mathilde Escher Stiftung

Hello, I try to:

php artisan october:update

But it then says, that:

sh: line 1: composer: command not found

But when I do:

composer -V

It says:

Composer version 2.1.12 2021-11-09 16:02:04

What am I doing wrong?

daftspunky
daftspunky

Hi Mathilde!

Run this command to find the location of the composer binary:

which composer

In the latest version, then set this environment variable (.env file):

COMPOSER_BIN=/path/to/composer

And try again, hopefully it will help!

Last updated

Mathilde Escher Stiftung
Mathilde Escher Stiftung

My hoster installed now the composer again under /usr/bin and now it did work.

But it's good to know, that I could set the composer path in the .env file.

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.