D
D
Dmitry Yakovlev2016-04-07 21:31:22
npm
Dmitry Yakovlev, 2016-04-07 21:31:22

How is bower different from npm?

Explain why use bower if everything can be downloaded with npm?
Is there something in it that is not in npm?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
sergey, 2016-04-07
@zorro76

The main difference between npm and bower is the approach to installing package dependencies. npm installs dependencies for each package separately, resulting in a large tree of packages (node_modules/grunt/node_modules/glob/node_modules/…) where there can be multiple versions of the same package. In client-side js, this is not allowed: you cannot include two versions of jQuery or any other library on a page. here is a good
UPD article: this difference has already been removed, it turns out that there are no differences, but both of these tools are used.

S
sim3x, 2016-04-07
@sim3x

Is there something in it that is not in npm?

Nothing

K
Konstantin Kitmanov, 2016-04-08
@k12th

bower can put dependencies in an arbitrary folder, which can be useful for legacy projects. Otherwise, there is no point in using two package managers.
A more recent reincarnation of the same idea is jspm, but it has a killer feature - integration with the SystemJS loader.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question