* A global npm install with a sudo fallback: some images (Daytona) run as a * non-root user with a root-owned global npm prefix → `-g` fails EACCES; retry * under passwordless sudo, preserving PATH so nvm's npm/node still resolve. Docker * runs as root, so the direct install succeeds and sudo nev
(spec: string)
| 101 | * runs as root, so the direct install succeeds and sudo never runs. |
| 102 | */ |
| 103 | function npmGlobal(spec: string): string { |
| 104 | return `npm install -g ${spec}` |
| 105 | } |
| 106 | |
| 107 | const HARNESSES: Record<HarnessName, HarnessSpec> = { |
| 108 | 'claude-code': { |