---
title: "Yarn support on Netlify | Netlify"
description: "Realize the speed, agility and performance of a scalable, composable web architecture with Netlify. Explore the composable web platform now!"
source: "https://www.netlify.com/blog/2016/11/01/yarn-support-on-netlify/"
last_updated: "2026-11-08T01:37:27.000Z"
---
> **Update, May 2021**: We’ve made a ton of improvements to our Yarn support since this blog post was written. Please check out [our docs](https://docs.netlify.com/configure-builds/manage-dependencies/#yarn) for the most current information.

We’re very excited to announce full support for [Yarn](https://yarnpkg.com), the dependency manager, on Netlify.

Yarn is a dependency manager for JavaScript projects. Although Yarn launched only a month ago, its three main features: speed, security and reproducibility are making this new package to gain popularity very quickly. We’ve been following the project very closely and we started using it for our own projects almost since the day it launched. Supporting it as a first class dependency manager in our continuous delivery pipeline was just a matter of time.

If that wasn’t enough reason for us to like Yarn, the project uses Netlify to host their webpage and leverages our [Deploy Previews feature.](https://www.netlify.com/blog/2016/07/20/introducing-deploy-previews-in-netlify/)

Starting today, if you deploy a site that includes a `yarn.lock` file in the base of the repository, we’ll use Yarn to install dependencies. We’ll do this automatically, without you having to change any configuration options. After the initial dependency linking, we’ll store Yarn’s cache for your project so future builds can use it to resolve package changes. If your dependencies don’t change between deploys, you’ll see those resolutions drop to under a second.

![](/v3/img/blog/yarn-log.png)

We’ve got a few environment variables you can set to control yarn behavior too:

-   `YARN_VERSION` to select a version of yarn to use. Otherwise we default to 0.18.1 (Note for future readers: we periodically update our default yarn version to keep current so you should not have to specify a `YARN_VERSION` unless you are using very very recent features.)
-   `YARN_FLAGS` to set flags that we’ll use when we automatically run `yarn install` for your build upon finding `/yarn.lock`

You can set these either in the Build Environment Variables section of each site’s settings, or via [netlify.toml](https://docs.netlify.com/configure-builds/overview/) where you can if you choose use different settings for different branches.

We encourage everyone to give Yarn a try. Fast, secure and reproducible resolution will change the way you approach dependency management.

### Share

-   [X (fka Twitter) ](https://twitter.com/intent/tweet?text=Yarn support on Netlify&url=https://www.netlify.com/blog/2016/11/01/yarn-support-on-netlify/)
-   [LinkedIn](https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.netlify.com%2Fblog%2F2016%2F11%2F01%2Fyarn-support-on-netlify%2F)
-   [Facebook](https://www.facebook.com/sharer.php?u=https://www.netlify.com/blog/2016/11/01/yarn-support-on-netlify/)
-   [Bluesky](https://bsky.app/intent/compose?text=Yarn support on Netlify+https://www.netlify.com/blog/2016/11/01/yarn-support-on-netlify/)

* * *

### Tags

-   [Build](/blog/tags/build/)
-   [yarn](/blog/tags/yarn/)

## Keep reading

![](/images/blog/edge-functions-firecracker-microvms.png)

News & Announcements September 29, 2026

[

### 5x faster Edge Functions: v8 isolates to Unikraft MicroVMs

](/blog/edge-functions-firecracker-microvms/)

-   Jake Champion
    
-   ![Profile picture of Aarthy Chandrasekhar](/images/people/aarthy-chandrasekhar.jpg)
    
    Aarthy Chandrasekhar
    
-   ![Profile picture of Ivan Zarea](/_astro/451968a8e873f95cf69c7edd78eb29a9035541eb-1024x1024_2wyTXf.webp)
    
    Ivan Zarea
    

![](/_astro/293b82c564c394853a3b9f6f7c4df278dd41846d-1200x675_1XQqSx.webp)

News & Announcements August 25, 2026

[

### Compete in OpenAI’s WebMCP Challenge with Netlify

](/blog/compete-openai-webmcp-challenge/)

-   ![Profile picture of Karthik Puvvada](/_astro/e5524d3c315ad5114e1d5300d8991bfe902916fe-192x192_qfdWJ.webp)
    
    Karthik Puvvada
    

## Recent posts

News & Announcements September 29, 2026

[

### 5x faster Edge Functions: v8 isolates to Unikraft MicroVMs

](/blog/edge-functions-firecracker-microvms/)

-   Jake Champion
    
-   ![Profile picture of Aarthy Chandrasekhar](/images/people/aarthy-chandrasekhar.jpg)
    
    Aarthy Chandrasekhar
    
-   ![Profile picture of Ivan Zarea](/_astro/451968a8e873f95cf69c7edd78eb29a9035541eb-1024x1024_2wyTXf.webp)
    
    Ivan Zarea
    

Opinions & Insights September 22, 2026

[

### How we built Git storage for millions of Netlify projects

](/blog/how-we-built-git-storage-for-millions/)

-   ![Profile picture of Philippe Serhal](/_astro/795792fe4d14648b1b96285e46426ed964b802d7-512x512_Z23ebKb.webp)
    
    Philippe Serhal
    

Tools & Services September 10, 2026

[

### Cursor Origin repositories build, preview, and deploy on Netlify

](/blog/cursor-origin-repositories-on-netlify/)

-   ![Profile picture of Gehrig Kunz](/_astro/b4e9f58d914d1334ea70d53ea55a1f26b26f1445-512x512_Z202edR.webp)
    
    Gehrig Kunz
    

![](/_astro/3f255b372fa958df35802666ee33b4609b2d71bd-1200x1586_nzSVh.webp)

### How do the best dev and marketing teams work together?

[Access the report](https://www.netlify.com/reports/2024-leadership-trend-report/access/)