# BunAppResource.withBunPackageInstallation

- Module: [CommunityToolkit.Aspire.Hosting.Bun](/reference/api/typescript/communitytoolkit.aspire.hosting.bun.md)
- Defined on: [BunAppResource](/reference/api/typescript/communitytoolkit.aspire.hosting.bun/bunappresource.md)
- Version: `13.5.0`
- Kind: `method`

Ensures the Bun packages are installed before the application starts using Bun as the package manager.

## Definition

```typescript
interface BunAppResource {
  // ... omitted for brevity
  withBunPackageInstallation(): BunAppResource;
}
```

## Signature

```typescript
withBunPackageInstallation(): BunAppResource
```

## Returns

[BunAppResource](/reference/api/typescript/communitytoolkit.aspire.hosting.bun/bunappresource.md) `builder`

## Defined on

- [BunAppResource](/reference/api/typescript/communitytoolkit.aspire.hosting.bun/bunappresource.md) -- `handle`
