[Bug]: ACP launcher bootstrap fails with ETARGET after each release (npm --prefer-offline reads stale metadata)
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 78/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- node.js, typescript
Hướng nghiên cứu
Bắt đầu tại acp.js, ở danh sách npmArgs của bootstrap, rồi kiểm tra cách các lỗi cài đặt bootstrap được báo cáo. Tái hiện trường hợp metadata cũ bằng --prefer-offline và kiểm tra cách npm báo cáo ETARGET hoặc notarget. Hoàn thành khi bootstrap thử lại một lần với --prefer-online khi gặp lỗi đó và vẫn báo cáo các lỗi cài đặt khác như bình thường.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Product or interface
CLI - ACP
Version
@minimax-ai/code-acp 0.8.1, bootstrapping @minimax-ai/code 0.8.1. The same failure happened earlier with 0.8.0. npm 11.19.0, Node.js 24.22.1.
Platform
Linux
OS version and architecture
Ubuntu 24.04 x64
Issue area
Startup / install / update
Steps to reproduce
- Use a host whose npm cache holds metadata for
@minimax-ai/codethat was fetched before the new release was published. - Have an ACP client update the launcher to the new
@minimax-ai/code-acpversion and open a session. At this point there is noready.jsonyet for the new release under~/.minimax-code/acp-releases/. - The launcher bootstraps with
npm install @minimax-ai/code@<version> --prefer-offline …(acp.js, thenpmArgslist in the bootstrap).
Expected and actual behavior
Expected: the launcher installs the exact version it targets.
Actual: with --prefer-offline, npm answers from the cached metadata, which does not list the new version yet. The install fails with ETARGET. Every session open then fails until the cached metadata expires or something else refreshes it, and the ACP client only sees a generic session-open failure. On one host this happened after the 0.8.0 release and again after 0.8.1. The second time it lasted about 17.5 hours and affected 28 session attempts. Running npm view @minimax-ai/code@<version> version --prefer-online once clears it immediately.
The launcher's isolated npm environment drops every npm_config_* variable except the proxy keys, so a client cannot pass prefer-online itself.
Suggested fix: when the bootstrap install fails with ETARGET/notarget, retry it once with --prefer-online. The launcher always targets an exact, often just-published version, so stale metadata is expected right after each release.
Redacted error summary
MiniMax Code bootstrap failed: npm install @minimax-ai/[email protected] exited with code 1: npm error code ETARGET
npm error notarget No matching version found for @minimax-ai/[email protected].
npm error notarget In most cases you or one of your dependencies are requesting a package version that doesn't exist.
Before submitting
- I have searched existing issues.
- I have included my version and removed sensitive information.
- Ngôn ngữ chính
- TypeScript
- Star
- 2.3k
- Fork
- 315
- Merge trung bình
- 3 giờ 54 phút
- Pull request đã merge (30 ngày)
- 9
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của MiniMax-AI/minimax-code
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
MiniMax-AI/minimax-code#636 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
MiniMax-AI/minimax-code#615 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
MiniMax-AI/minimax-code#556 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
MiniMax-AI/minimax-code#507 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug needs-triage tui
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
MiniMax-AI/minimax-code#481 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của MiniMax-AI/minimax-code
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
tashfeenahmed/freellmapi#2217 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
remotion-dev/skills#37 ·
-
gui: a narrow window's gateway key row with a line under it wraps its faded badges onto blank linesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
-
Slider: Escape during a thumb drag keeps and commits the dragged value, unlike ui-sdk's other dragsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
vercel-labs/ui#1758 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
nicobailon/pi-subagents#3425 ·
Maintainer thường phản hồi trong vòng 1 ngày