-
Notifications
You must be signed in to change notification settings - Fork 68
-
Notifications
You must be signed in to change notification settings - Fork 68
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
sh: composer: command not found when running build:project:create #165
Comments
My understanding is that this tool relies on the copy of composer running already on a machine. Do you have Composer installed? |
Yes, build tools needs git and Composer (in addition to Terminus and the build tools plugin) to run. Composer can be downloaded from https://getcomposer.org/ |
I was getting the same error and I had composer installed locally. Here was my alias setup on bash/Zsh profile to execute composer. |
|
I fixed this by adding a symbolic link 'composer' in the directory where composer.phar lives pointing to the composer.phar file (ln -s composer.phar composer) and the Terminus Build Tools plugin found it. |
I had composer.phar in /usr/local/bin, and I had I followed Farnoosh63's recommendation of: cd /usr/local/bin
mv composer.phar composer
sudo chmod +x composer And it made my NPM script in package.json work properly again. |
This worked for me :-) |
@agm1984 also worked for me. Thanks! |
For my experience, i did the following:
it will then works Because in
we need to make sure laravel can find composer executable in .composer/vendor/bin |
This may be user error on my part, I'm not sure - but I am receiving the following when I try and run build:project:create:
Any help appreciated
The text was updated successfully, but these errors were encountered: