Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install plugins via terminus #2366

Open
TMWagner opened this issue Jun 8, 2022 · 4 comments
Open

Unable to install plugins via terminus #2366

TMWagner opened this issue Jun 8, 2022 · 4 comments

Comments

@TMWagner
Copy link

TMWagner commented Jun 8, 2022

Platform

( ) MacOS

Installed Via

( ) Homebrew

PHP Version

( ) 7.4x

Terminus Version

( ) Terminus 3.0.7

Command Executed

In zsh
terminus self:plugin:install pantheon-systems/terminus-plugin-example

Expected behavior

Something normal...

Actual behavior

Returned with an error message
[error] Please install Composer to enable plugin management. See https://getcomposer.org/download/.
image

@kporras07
Copy link
Contributor

Hi!
It seems like you're using "composer" as an alias of "composer.phar" into /usr/local/bin/composer

Could you try putting composer binary directly into /usr/local/bin/ and remove the alias and then give it another try? The final path for composer binary should be /usr/local/bin/composer

Please let us know if this works

@TMWagner
Copy link
Author

TMWagner commented Jun 9, 2022

@kporras07 if I do that, then I have to run PHP /../composer.phar instead of composer. Not a very attractive solution.

right now, composer.phar is in /usr/local/bin/composer/composer.phar

Are you suggesting putting it in /usr/local/bin/composer.phar ?

Another thing I could do is change the alias... I'm really not fond of having to typephp /usr/local/bin/composer/composer.pharevery time I use composer

@kporras07
Copy link
Contributor

@TMWagner no, I mean just leave it at /usr/local/bin/composer (instead of /usr/local/bin/composer/composer). This way, assuming that /usr/local/bin/ is in your PATH, you will use it just as "composer". That's actually the only thing you need, have composer in your path so that you can run it by just typing "composer" but without using aliases

@uotonyh
Copy link

uotonyh commented Sep 14, 2022

I'm having the same issue, where terminus is confused about Composer.

Composer is installed at /usr/local/bin, and is reporting 2.4.1 for the version number. When I run Terminus with verbose, it's finding Composer version 2.0.13. I have no idea where Terminus is finding that composer. Is there a way to ask Terminus where it is looking for Composer?

$ which composer
/usr/local/bin/composer
$ composer --version
Composer version 2.4.1 2022-08-20 11:44:50
$ terminus -vvv self:plugin:install terminus-rsync-plugin
 [debug] Running composer --version...
 [debug] Returned:
Composer version 2.0.13 2021-04-27 13:11:08

 [error]  Please update Composer to enable plugin management. Run composer self-update. 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants