Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Composer is not copying on the specified bin-dir directory

I had this issue sometimes, on windows, on mac, on ubuntu...

I have this composer.json:

{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
    "laravel/framework": "4.2.*",
    "zizaco/confide": "~4.0@dev",
    "zizaco/entrust": "1.2.*@dev",
    "guzzlehttp/guzzle": "~4.0"
},
"require-dev": {
    "phpunit/phpunit": "4.1.4",
    "behat/behat": "3.0.12",
    "behat/mink": "1.5.0",
    "behat/mink-extension": "2.0.0",
    "behat/mink-goutte-driver": "1.0.9",
    "codeception/verify": "0.2.7",
    "codeception/specify": "0.3.6"

},
"autoload": {
    "classmap": [
        "app/commands",
        "app/controllers",
        "app/models",
        "app/database/migrations",
        "app/database/seeds",
        "app/tests/TestCase.php"
    ]
},
"scripts": {
    "post-install-cmd": [
        "php artisan clear-compiled",
        "php artisan optimize"
    ],
    "post-update-cmd": [
        "php artisan clear-compiled",
        "php artisan optimize"
    ],
    "post-create-project-cmd": [
        "php artisan key:generate"
    ]
},
"config": {
    "bin-dir": "bin/",
    "preferred-install": "dist"
},
"minimum-stability": "stable"

}

This is Laravel 4 with a few testing packages.

After a composer install or a composer update the directory "bin" is not created on my project.

I should have one binary for phpunit and another for behat. So i have to use the commands like vendor/behat/bin/behat and vendor/phpunit/phpunit/phpunit which is a pain.

Any idea why the binaries are not on the "bin" folder?

Yesterday, the some project with less packages, I had the binary folder there with the phpunit binary. Now is gone. I don't get it.

like image 917
Carlos Goce Avatar asked Oct 31 '22 19:10

Carlos Goce


1 Answers

This happened to me today as well. While I haven't yet figured out why it happens, a dirty workaround is to remove vendor folder and run composer install.

like image 124
lukwoz Avatar answered Nov 08 '22 03:11

lukwoz