zont / gulp-bower

MIT License
82 stars 22 forks source link

cmd extra parameters #32

Closed boogerlad closed 8 years ago

boogerlad commented 9 years ago
TypeError: Cannot read property 'apply' of undefined
    at Object.module.exports (/root/cutequickposweb/node_modules/gulp-bower/index.js:51:21)

when I do bower({ cmd: 'install --allow-root'})

jmullo commented 9 years ago

Noticed the same. I need to run:

bower({ cmd: "cache clean" })

joshbrayman commented 9 years ago

From what I can see of index.js, it looks like the intention is to call the arguments separately, e.g., bower({cmd: 'install'},['--allow-root']). However, in running bower({cmd: 'link'}, ['some_local_package', 'some_local_package']) I had to comment out line 46 to get everything to run properly.

vjpr commented 9 years ago

+1

Grsmto commented 8 years ago

For anyone wanting to apply joshbrayman fix, I had to to this way: bower({ cmd: 'update'},[['my-module']]) to do a bower update my-module.

dgreene1 commented 8 years ago

It would be really awesome if someone could update the readme with this functionality?