select2-bootstrap-theme
select2-bootstrap-theme copied to clipboard
bower vs. npm
If you install this package via bower, it fails when running Grunt cause of missing files:
>> bower_components/select2-bootstrap-theme/src/build.less: [L1:C0] '../node_modules/bootstrap/less/variables' wasn't found. Tried - bower_components/select2-bootstrap-theme/node_modules/bootstrap/less/variables.less,node_modules/bootstrap/less/variables.less,../node_modules/bootstrap/less/variables.less
This is because bootstrap is installed then as ../bower_components/bootstrap instead of ../node_modules/bootstrap. This is easy solvable by installing it via NPM too (so it'll download bootstrap into ../node_modules too as dependency). But using only bower fails.
Since I'm installing boostrap using bower, I find it very strange that I need to download it twice - via npm and via bower.