Answer the question
In order to leave comments, you need to log in
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
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.
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 questionAsk a Question
731 491 924 answers to any question