0

I am a beginner in front-end developement using package managers. I am reading the official tutorial of AngularJS. It explains how to install Angular with npm (which requires nodejs installation, this is somehow comprehensible). But package.json contains a line for Bower.

What I understand from official websites is that Bower and NPM are similar, so why to install both of them? why not only Bower which will allow skipping nodejs and npm?

Your usual simple explanations are invaluable. Thanks

Adib Aroui
  • 4,981
  • 5
  • 42
  • 94
  • 1
    One reason provided in the following SO answer: http://stackoverflow.com/a/18652918/624590 . "The reason many projects use both is that they use Bower for front-end packages and npm for developer tools like Yeoman, Grunt, Gulp, JSHint, CoffeeScript, etc." – DRobinson Jul 31 '15 at 19:20
  • 1
    You don't need both, but, if you're goign to take advantage of things like gulp or grunt to ease development and deployment, you're going to need npm. Also note that you can skip bower and just use npm. – Kevin B Jul 31 '15 at 19:22
  • @DRobinson, thank you for your informative feedback. Can I understand that there is a common part between the two but there are different in some other functionnalities, that they are both package managers but depending on the needs, one may choose one over another? am i right? – Adib Aroui Jul 31 '15 at 19:24
  • @KevinB. thank you very much, you answered my question to DRobinson before I send it. – Adib Aroui Jul 31 '15 at 19:25

0 Answers0