The `eas-build-cache-provider` package serves as a specialized build cache provider plugin designed for seamless integration with the Expo CLI (specifically EAS Build). Its core functionality is to enable remote caching for build artifacts generated by EAS, which significantly accelerates subsequent build times by reusing cached components. Currently stable around version 18.5.0 (with recent updates up to 18.7.0), this package is typically configured declaratively within an Expo project's `app.json` or `app.config.js` file, making it a configuration-driven tool rather than one that requires direct programmatic imports in application code. The release cadence generally aligns with the broader `eas-cli` ecosystem, providing continuous feature enhancements and bug fixes. It's a critical component for optimizing CI/CD pipelines for Expo applications built with EAS.
npm install eas-build-cache-providerVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to enable the EAS build cache provider by configuring `app.json` and then running an `eas build` command to utilize the remote caching feature.
Ensure all `eas update` commands, especially in CI/CD pipelines, include `--environment <your-environment-name>` when your project uses Expo SDK 55 or newer (e.g., `eas update --branch production --environment production`).
Do not import symbols from `eas-build-cache-provider` into your application code. Instead, enable the cache provider by setting the `buildCacheProvider` property to `'eas'` within the `experiments` section of your project's `app.json`.
Ensure your Node.js environment is updated to version 20.0.0 or higher before executing EAS CLI commands that utilize this plugin.
Modify your `eas update` command to include `--environment <your-environment-name>`. For example: `eas update --branch main --environment production`.
Ensure you have installed the package correctly by running `npm install --save-dev eas-build-cache-provider` or `yarn add --dev eas-build-cache-provider` in your project's root directory. Verify that `node_modules` is included in your build context.
Attempt to clear the EAS cache using `eas build:cache --clear`. On local machines, you might also try `rm -rf ~/.eas/` (macOS/Linux). For CI environments, confirm that the build user has appropriate read/write permissions for the `~/.eas/` directory or its equivalent temporary cache locations.