bower install vs. bower install --save vs. bower install --save-dev, Git doesn't save bower_components directory?

时间:2016-04-12 00:44:23

标签: angularjs git bower gitlab angular-bootstrap

I was trying to update angular-bootstrap, I ran

bower install angular-bootstrap

But other devs at the office said to use:

bower install angular-bootstrap --save

BUT I've also seen:

bower install angular-bootstrap --save-dev

PROBLEM!

Project didn't work, So I tried a git reset --hard to a commit with a working version:

git reset --hard <commit#>

BUT that didn't fix it. In Gitlab, the bower_components directory wasn't saved to the online repo, but the bower.json file was.

So when should we use:

bower install <package>

bower install <package> --save

bower install <package> --save-dev

0 个答案:

没有答案