Skip to content

Commit a1198c3

Browse files
committed
Adds corepack bug and workaround
1 parent f1c19e1 commit a1198c3

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

docs/deployment/overview.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ sidebarTitle: "Overview"
44
description: "Learn how to deploy your tasks to Trigger.dev."
55
---
66

7+
import CorepackError from "/snippets/corepack-error.mdx";
8+
79
Before you can run production workloads on Trigger.dev, you need to deploy your tasks. The only way to do this at the moment is through the [deploy CLI command](/cli-deploy):
810

911
<CodeGroup>
@@ -231,3 +233,4 @@ export default defineConfig({
231233
},
232234
});
233235
```
236+
<CorepackError />

docs/snippets/corepack-error.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
### `Cannot find matching keyid`
2+
3+
This error occurs when using Node.js v22 with corepack, as it's not yet compatible with the latest package manager signatures. To fix this, either:
4+
5+
1. Downgrade to Node.js v20 (LTS), or
6+
2. Install corepack globally: `npm i -g corepack@latest`
7+
8+
The corepack bug and workaround are detailed in [this issue](https://github.com/npm/cli/issues/8075).

docs/troubleshooting.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description: "Some common problems you might experience and their solutions"
66
import NextjsTroubleshootingMissingApiKey from "/snippets/nextjs-missing-api-key.mdx";
77
import NextjsTroubleshootingButtonSyntax from "/snippets/nextjs-button-syntax.mdx";
88
import RateLimitHitUseBatchTrigger from "/snippets/rate-limit-hit-use-batchtrigger.mdx";
9+
import CorepackError from "/snippets/corepack-error.mdx";
910

1011
## Development
1112

@@ -71,6 +72,9 @@ export default defineConfig({
7172

7273
If you see this error, add pino (and any other associated packages) to your `external` build settings in your `trigger.config.ts` file. Learn more about the `external` setting in the [config docs](/config/config-file#external).
7374

75+
<CorepackError />
76+
77+
7478
## Project setup issues
7579

7680
### `The requested module 'node:events' does not provide an export named 'addAbortListener'`

0 commit comments

Comments
 (0)