Install fails because it's not checking for fnm properly? MacOS

Đang mở Phù hợp với người mới
#13,533 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 6 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
68/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
bash, macos, shell, typescript
Lĩnh vực
cli

Hướng nghiên cứu

Báo cáo chỉ đến extensions/cli/scripts/install.sh; hãy bắt đầu bằng cách đọc các bước cài đặt fnm và phát hiện tệp nhị phân, sau đó so sánh đường dẫn dự kiến với vị trí Homebrew được nêu trong báo cáo. Tái hiện lỗi trên macOS với Homebrew nếu có. Công việc hoàn tất khi trình cài đặt nhận diện được tệp nhị phân fnm đã cài đặt và tiếp tục thành công.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Before submitting your bug report
Relevant environment info
- OS: macOS 27.2
- Continue version: whatever the installer script wants to install
- IDE version: N/A
- Model: N/A
- config: N/A
Description

Installation fails because it's trying to find fnm in a hard coded directory but brew installs fnm into it's normal location.

paulhargreaves@ultra ~ % curl -fsSL https://raw.githubusercontent.com/continuedev/continue/main/extensions/cli/scripts/install.sh | bash      

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
           Continue CLI Installer
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

==> Detected platform: darwin-arm64
==> Using shell profile: /Users/paulhargreaves/.zshrc
==> Warning: Node.js is not installed
==> Installing fnm (Fast Node Manager)...
Downloading fnm using Homebrew...
Checking dependencies for the installation script...
Checking availability of curl... OK!
Checking availability of unzip... OK!
Checking availability of Homebrew (brew)... OK!
==> Fetching downloads for: fnm
✔︎ Bottle fnm (1.39.0)                               Downloaded    3.2MB/  3.2MB
==> Pouring fnm--1.39.0.arm64_golden_gate.bottle.tar.gz
🍺  /opt/homebrew/Cellar/fnm/1.39.0: 12 files, 7.8MB
==> Caveats
zsh completions have been installed to:
  /opt/homebrew/share/zsh/site-functions
==> Error: fnm installation failed - binary not found at /Users/paulhargreaves/.local/share/fnm/fnm
==> Warning: Installation failed. Cleaning up...
paulhargreaves@ultra ~ % which fnm
/opt/homebrew/bin/fnm
To reproduce
  1. I assume - don't have fnm installed, nor any of the directories.
  2. Have a machine that brew wants to install the golden gate version of fnm.
  3. Follow the install script.
Log output

Ngôn ngữ chính
TypeScript
Star
36.6k
Fork
5.6k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của continuedev/continue

Tất cả issue của continuedev/continue

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.