Spea / SpBowerBundle

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

CommandException: Something went wrong while executing the command '/usr/bin/bower' 'install' env: node: No such file or directory #68

Closed tlherr closed 10 years ago

tlherr commented 10 years ago

OSX 10.9 Build 13A603

$ which node
/usr/local/bin/node
$ node -v
v0.10.21
$ which bower
/usr/bin/bower
$ bower --v
1.2.7

config .yml

sp_bower:
    install_on_warmup: true
    bundles:
        MyBundleName: ~

Node installed via nvm. Tried symlinking to make sure paths are ok similar to issue #44. Happens every time cache is cleared.Thanks!

Error: CommandException: Something went wrong while executing the command '/usr/bin/bower' 'install' env: node: No such file or directory

Stacktrace:

in project/vendor/sp/bower-bundle/Sp/BowerBundle/Bower/Bower.php line 217
at Bower->execCommand(object(Configuration), array('install'), null) in project/vendor/sp/bower-bundle/Sp/BowerBundle/Bower/Bower.php line 82
at Bower->install(object(Configuration)) in project/vendor/sp/bower-bundle/Sp/BowerBundle/CacheWarmer/DependencyCacheWarmer.php line 66
at DependencyCacheWarmer->warmUp('project/app/cache/dev') in project/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerAggregate.php line 47
at CacheWarmerAggregate->warmUp('project/app/cache/dev') in project/app/bootstrap.php.cache line 2443
at Kernel->initializeContainer() in project/app/bootstrap.php.cache line 2215
at Kernel->boot() in project/app/bootstrap.php.cache line 2246
at Kernel->handle(object(Request)) in project/web/app_dev.php line 28
tlherr commented 10 years ago

See https://github.com/joyent/node/issues/3911 for more info, this seems to be tied to nvm

Spea commented 10 years ago

closing since it is not a problem of this bundle