All Posts

Support for Bun in EAS and Expo CLI

Sep 25, 2023 by

Avatar of Kadi Kraman

Kadi Kraman

Support for Bun in EAS

We have added support for Bun on Expo CLI and EAS! This means you can use Bun to create your Expo app, install packages, run scripts and build your app on EAS.

Using Bun locally

The first step (if you haven't yet) is to install Bun on your local machine. After installation, you should have access to bun in your terminal.

To create a new Expo app:

bun create expo my-app

Run a package.json script:

bun run ios

Install a package:

bun expo install expo-av

You can also use Bun to install packages, but output a readable yarn.lock as well as the bun.lockb:

bun install --yarn

Using Bun for EAS builds

EAS will decide which packager to use based the lockfile in your codebase. So if you want EAS to use Bun, run bun install in your codebase and ensure it creates a bun.lockb - the Bun lockfile. As long as this lockfile is in your codebase, Bun will be used as the package manager for your builds.

Customizing your Bun version on EAS

EAS will use bun@1.0.2 by default. If you want or need to use a particular version of Bun, you can configure the exact version in each build in your eas.json.


  "build": {
    "test": {
      "bun": "1.0.0"
      // other settings...
    // other build profiles...


Avatar of Evan Bacon

Evan Bacon adding Bun support on the CLI

Avatar of Cedric van Putten

Cedric van Putten improving Bun support on the CLI

Avatar of Szymon Dziedzic

Szymon Dziedzic adding Bun to existing images

Avatar of Kadi Kraman

Kadi Kraman adding Bun to EAS