Spea / SpBowerBundle

Symfony2 Bundle to handle asset dependencies with bower
231 stars 44 forks source link

RuntimeException: An error occured while installing dependencies #114

Closed nanoo-k closed 10 years ago

nanoo-k commented 10 years ago

I'm trying to run app/console sp:bower:install for the first time and I get this error:

$ app/console sp:bower:install

Installing bower dependencies for "MyProjectSiteBundle" into "/Users/<username>/<Symfony2 Project Name>/src/MyProject/Bundle/SiteBundle/Resources/config/bower/../../public/components"
sh: line 0: fg: no job control

[Sp\BowerBundle\Bower\Exception\RuntimeException]  
An error occured while installing dependencies

1) Here is my config.yml.

# SpBowerBundle Configuration
sp_bower:
    bin: usr/local/bin/bower
    bundles:
        MyProjectSiteBundle:
            config_dir: Resources/config/bower

2) I've included your bundle in AppKernel.php.

$bundles = array(
    ...
    new Sp\BowerBundle\SpBowerBundle(),
    ...
);

3) And here's my bower.json, which lives inside <Symfony2 Project Name>/src/MyProject/Bundle/SiteBundle/Resources/config/bower/bower.json.

{
    "name": "my-project-site-bundle",
    "dependencies": {
        "jquery": "~2.1.1",
        "foundation": "~5.4.5",
        "qTip2": "~2.2.1",
        "jquery.ui": "~1.11.2",
        "jquery-cookie": "~1.4.1"
    }
}

Any idea what I could do to sort out this issue?

p.s. • My public/components and public/components/cache are created when I run sp:bower:install • Symfony version 2.5.6 • bower version.1.3.12 • php version 5.4.34 • I'm following these directions: https://github.com/Spea/SpBowerBundle/blob/master/Resources/doc/index.md

Tatsh commented 10 years ago

Same error, PHP version 5.5.18

https://stackoverflow.com/questions/11821378/what-does-bashno-job-control-in-this-shell-mean

Tatsh commented 10 years ago
Exception trace:
 () at /home/tatsh/myproj/vendor/sp/bower-bundle/Command/InstallCommand.php:55
 Sp\BowerBundle\Command\InstallCommand->execute() at /home/tatsh/myproj/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:252
 Symfony\Component\Console\Command\Command->run() at /home/tatsh/myproj/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:896
 Symfony\Component\Console\Application->doRunCommand() at /home/tatsh/myproj/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:193
 Symfony\Component\Console\Application->doRun() at /home/tatsh/myproj/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:96
 Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /home/tatsh/myproj/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:124
 Symfony\Component\Console\Application->run() at /home/tatsh/myproj/app/console:30
nanoo-k commented 10 years ago

I had incorrectly set a parameter.

%%bower_path%% ...instead of... %bower_path% # Correct