If you already use npm, you’re probably wondering what’s the point of Yarn?
Yarn is a somewhat new JavaScript package manager created by the engineers at Facebook.
- It’s a faster and more secure dependency manager
- It uses an offline cache – so after you’ve installed a package using Yarn, it will be available on your machine for offline access.
Quite honestly, what really reeled me in with Yarn was the speed at which it can install packages. It’s amazing how shaving off a few seconds from installing packages can really speed up your overall workflow.
Get Yarn
npm install –g yarn
Or use brew to add it. Once installed, you use the following format to add any dependency:
yarn add <name of package>