thecodingmachine / nodejs-installer

An installer package that let's you install NodeJS and NPM as a Composer dependency.
107 stars 28 forks source link

Can't create bin script when bin folder doesn't exist #1

Closed nsams closed 9 years ago

nsams commented 9 years ago

Your plugin looks promising!

One issue I found though:

$ composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files

[ErrorException]                                                                                           
file_put_contents(/home/niko/www/testx/vendor/bin/node): failed to open stream: No such file or directory  

my composer.json:

{
    "require": {
        "mouf/nodejs-installer": "~1.0"
    },
    "extra": {
        "mouf": {
            "nodejs": {
                "version": "0.12.0",
                "minimumVersion": "0.8.0",
                "targetDir": "vendor/nodejs/nodejs"
            }
        }
    },
    "minimum-stability": "dev",
    "prefer-stable": true
}

Workaround: mkdir vendor/bin

moufmouf commented 9 years ago

Oops, absolutely true.

Thanks a lot for the feedback. This should be fixed now.