select2 / select2-bootstrap-theme

A Select2 v4 Theme for Bootstrap 3
https://select2.github.io/select2-bootstrap-theme/
MIT License
872 stars 499 forks source link

bower vs. npm #81

Open morsik opened 5 years ago

morsik commented 5 years ago

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.