npm vs. Bower vs. Yarn



Hacker News, Reddit, Stack Overflow Stats

  • 1.03K
  • 6.75K
  • 23.8K
  • 139
  • 517
  • 3.14K
  • -
  • 640
  • 2.99K

GitHub Stats

Description

What is npm?

npm is the command-line interface to the npm ecosystem. It is battle-tested, surprisingly flexible, and used by hundreds of thousands of JavaScript developers every day.

What is Bower?

Bower is a package manager for the web. It offers a generic, unopinionated solution to the problem of front-end package management, while exposing the package dependency model via an API that can be consumed by a more opinionated build stack. There are no system wide dependencies, no dependencies are shared between different apps, and the dependency tree is flat.

What is Yarn?

Yarn caches every package it downloads so it never needs to again. It also parallelizes operations to maximize resource utilization so install times are faster than ever.

Want advice about which of these to choose?Ask the StackShare community!

Pros

Why do developers choose npm?
Why do you like npm?

Why do developers choose Bower?
Why do you like Bower?

Why do developers choose Yarn?
Why do you like Yarn?

Cons

What are the cons of using npm?
Downsides of npm?

What are the cons of using Bower?
Downsides of Bower?

What are the cons of using Yarn?
Downsides of Yarn?

Pricing

How much does npm cost?
How much does Bower cost?
How much does Yarn cost?

Companies

What companies use npm?
2953 companies on StackShare use npm
What companies use Bower?
1048 companies on StackShare use Bower
What companies use Yarn?
612 companies on StackShare use Yarn

Integrations

What tools integrate with npm?
22 tools on StackShare integrate with npm
What tools integrate with Bower?
6 tools on StackShare integrate with Bower
What tools integrate with Yarn?
9 tools on StackShare integrate with Yarn

What are some alternatives to npm, Bower, and Yarn?

  • RequireJS - JavaScript file and module loader
  • Browserify - Browser-side require() the node.js way
  • Component - Client package management for building better web applications
  • Duo - A next-generation package manager for the front end

See all alternatives to npm

Latest News

WebStorm 2018.1 Early Access Preview: improvements i...
Incident report: npm, Inc. operations incident of Ja...
npm operational incident, 6 Jan 2018
nohoist in Workspaces
Facebook Releases Yarn Version 1.0
Yarn 1.0 is Here


Interest Over Time


Get help choosing one of these