You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fa998cc
Browse filesBrowse the repository at this point in the historyBrowse files
-`scriptSrc`: `<base>embedded.js`, the URL to inject as `<script type="module">`.
40
40
-`disabled` and `installed`: what the host needs to decide whether to inject the script at all (below).
41
41
42
-
`packages` are package specs as the package manager accepts them. The package manager comes from the lockfile (`npm`, `pnpm`, `yarn`, `bun`, `deno`), `dev: true` adds `-D`, and `cwd` (default `process.cwd()`) is the project that receives the dependency. In a workspace, point `cwd` at the package that runs the dev server. The packages are fixed at creation.
42
+
`packages` are package specs as the package manager accepts them. The package manager comes from the lockfile (`npm`, `pnpm`, `yarn`, `bun`, `deno`), `dev: true` adds `-D`, and `cwd` (default `process.cwd()`) is the project that receives the dependency. In a workspace, point `cwd` at the package that runs the dev server. The packages are fixed at creation. An install that runs longer than `installTimeout` (default 5 minutes) is stopped, and the panel asks the user to run the command in a terminal ([DF9009](/errors/DF9009)).
43
43
44
44
## Confirm the install
45
45
@@ -225,4 +225,4 @@ Frameworks with a `Request => Response` surface (Hono, Nitro, Deno) mount `onboa
225
225
226
226
## Errors
227
227
228
-
The Node side reports through `DF9000` to `DF9008`. An install failure or a throwing `onInstalled` also reaches the panel as `{ state: 'error', error: { code, message } }`, with a Retry button. See the [error reference](/errors).
228
+
The Node side reports through `DF9000` to `DF9009`. An install failure or a throwing `onInstalled` also reaches the panel as `{ state: 'error', error: { code, message } }`, with a Retry button. See the [error reference](/errors).
description: 'The package manager did not finish in time, so the install was stopped.'
4
+
---
5
+
6
+
## Message
7
+
8
+
> `{command}` did not finish within `{seconds}` seconds, so it was stopped.
9
+
10
+
## Cause
11
+
12
+
The Install button ran the project's package manager, and the package manager did not exit before the time limit. The limit is the `installTimeout` option of `createOnboarding()`. The default is 5 minutes. The onboarding then stopped the process, so the panel does not wait forever.
13
+
14
+
Usually the package manager hangs. For example, some pnpm 10 versions hang while they resolve some prerelease versions. A slow network or a very large install can also take longer than the limit.
15
+
16
+
## Fix
17
+
18
+
Run the command shown in the panel in a terminal to see where the package manager stops. Fix the cause, for example update the package manager, then click Retry. If the install is only slow, pass a larger `installTimeout` to `createOnboarding()`.
19
+
20
+
## Source
21
+
22
+
-[`packages/hub-ui-onboard/src/install.ts`](https://github.com/devframes/devframe/blob/main/packages/hub-ui-onboard/src/install.ts): `runInstall` stops the process and throws this when the time limit ends. The status route reports it as `{ state: 'error', error: { code, message } }`.
why: (p: {command: string,minutes: number})=>`Nobody allowed \`${p.command}\` within ${p.minutes} minutes. The install was refused.`,
50
50
fix: 'Click Install again and answer in the terminal that runs the dev server. If the answer does not arrive, another program reads that terminal: pass an `onConfirm` function to `createOnboarding()`.',
51
51
},
52
+
DF9009: {
53
+
why: (p: {command: string,seconds: number})=>`\`${p.command}\` did not finish within ${p.seconds} seconds, so it was stopped.`,
54
+
fix: 'Run the command in a terminal to see where the package manager stops, then click Install again. If the install is only slow, raise `installTimeout`.',
0 commit comments