Nx-remotecache-gcs v2.2.0 is a task runner for Nx that uses a Google Cloud Storage (GCS) bucket as a remote cache, enabling shared cache between team members and CI servers. It requires @nx/workspace >=16.0.0 and is configured via nx.json. Compared to other remote cache solutions (e.g., nx-remotecache-aws), it targets GCS users with minimal setup, supports lifecycle policies for automatic cache cleanup and an NX_SKIP_REMOTE_CACHE environment variable. Release cadence is moderate, with fewer updates than Nx core.
npm install nx-remotecache-gcsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installs the package, creates a GCS bucket, sets a lifecycle rule, configures nx.json, and runs a build to populate the remote cache.
Use 'gs://my-bucket' in the bucket option.
Restrict bucket access using IAM policies or bucket ACLs to only necessary service accounts/users.
Keep @nx/workspace updated to a compatible version (>=16.0.0).
Run 'npm install @nx/workspace@latest --save-dev' to install the correct version.
Add 'bucket': 'gs://your-bucket-name' to the options object.
Verify bucket name (including gs:// prefix) and ensure GCS credentials are properly set (e.g., GOOGLE_APPLICATION_CREDENTIALS environment variable).