Composer Install

So I found an answer on here but can’t get it to work.

Right-click on the site and go to “Open Site SSH”
Enter apt-get update && apt-get install -y curl
Enter curl -sS https://getcomposer.org/installer | php – --install-dir=/usr/local/bin --filename=composer
After that, you can immediately use composer

This command worked fine (apt-get update && apt-get install -y curl)
When I enter the next command I get (command not found)

Anybody know what I’m doing wrong?

use this instead:

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

I’ve managed to run the mentioned commands.

After that, composer should be available for that website container (I suppose).

If I run a composer command, that seems to work. But it should place a vendor folder. Except: it’s not there.

Where / how should a composer command be run?

Hey @kevinbrands, there’s been a few updates to Local since the last post here.

What version of Local and what OS are you running?

Hi @mattwhosthat,

I managed to fix this another way, but thanks for replying!

1 Like