Search code examples
npmfrontendnodesboweryarnpkg

Why bower-away is moving to bower to Yarn and not NPM


I came across this nice module bower-away, which is helping us migrate our bower projects, since bower is deprecated.

However I am not clear with concept why would we migrate to Yarn and Not to NPM. is it only because NPM uses nested dependencies and Yarn uses flat dependency tree structure.

https://github.com/sheerun/bower-away

or is there any other reason


Solution

  • It's because only Yarn allows for installing git repositories without package.json (i.e. bower components) and is able to resolve semver versions on git tags.