Spea / SpBowerBundle

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

Error: EACCES, mkdir '/var/vendor' #80

Closed mattalxndr closed 10 years ago

mattalxndr commented 10 years ago

I followed the README, and this was the output when I ran app/console sp:bower:install:

Installing bower dependencies for "ASDAdmBundle" into "/vagrant/vendor/asd/adm-bundle/ASD/AdmBundle/Resources/config/bower/../../public/components"
bower jquery#~2.1               cached git://github.com/jquery/jquery.git#2.1.0
bower jquery#~2.1             validate 2.1.0 against git://github.com/jquery/jquery.git#~2.1
bower                           EACCES EACCES, mkdir '/var/vendor'

Stack trace:
Error: EACCES, mkdir '/var/vendor'

Console trace:
Trace
    at StandardRenderer.error (/usr/lib/node_modules/bower/lib/renderers/StandardRenderer.js:74:17)
    at Logger.<anonymous> (/usr/lib/node_modules/bower/bin/bower:114:22)
    at Logger.EventEmitter.emit (events.js:95:17)
    at Logger.emit (/usr/lib/node_modules/bower/node_modules/bower-logger/lib/Logger.js:29:39)
    at /usr/lib/node_modules/bower/lib/commands/install.js:35:16
    at _rejected (/usr/lib/node_modules/bower/node_modules/q/q.js:797:24)
    at /usr/lib/node_modules/bower/node_modules/q/q.js:823:30
    at Promise.when (/usr/lib/node_modules/bower/node_modules/q/q.js:1035:31)
    at Promise.promise.promiseDispatch (/usr/lib/node_modules/bower/node_modules/q/q.js:741:41)
    at /usr/lib/node_modules/bower/node_modules/q/q.js:557:44

System info:
Bower version: 1.3.1
Node version: 0.10.26
OS: Linux 3.2.0-60-generic x64

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

sp:bower:install

I ran the command in the root directory. A bundle in the vendor directory (ASDAdmBundle), has the following config file created at ./vendor/asd/adm-bundle/ASD/AdmBundle/Resources/config/bower/bower.json:

{
    "name": "asd-adm-bundle",
    "dependencies": {
        "jquery": "~2.1"
    }
}
mattalxndr commented 10 years ago

This is in bower: https://github.com/bower/bower/issues/1186

jrjohnson commented 10 years ago

@mattalexx any chance you can expand on this? I'm getting the same error and your two tickets reference each other, but I don't understand the solution.

Never mind, works in head, just not in 0.10. I'm guessing it is an issue with vagrant and was fixed in [9d0332b0aa3f7b1bc11cca9704fa31207e88bafe]