NativeScript / NativeScript/nativescript-cli

ns migrate (to 8) failing at Android step

Đang mở
#5,548 0 bình luận 1 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

bug
Ngôn ngữ chính
JavaScript
Star
1.1k
Fork
204
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
8

Mô tả

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 8.0.2
  • Cross-platform modules:
  • Android Runtime: 7.0.1
  • iOS Runtime: 6.5.4
  • XCode Version: 12.5.1
  • Plugin(s): none

Describe the bug

spawn: npm "install" "--legacy-peer-deps" "tns-android@8.0.0" "--silent" "--dev" "--save-dev" "--save-exact"
Will send the following information to Google Analytics: {
  type: 'googleAnalyticsData',
  category: 'CLI',
  googleAnalyticsDataType: 'event',
  action: 'Performance',
  label: 'PackageManager__install',
  customDimensions: { cd2: 'Angular', cd9: 'false', cd5: 'CLI' },
  value: 10877
}
Error: Command npm failed with exit code 1
    at ChildProcess.<anonymous> (/usr/local/lib/node_modules/nativescript/lib/common/child-process.js:143:36)
    at ChildProcess.emit (events.js:315:20)
    at maybeClose (internal/child_process.js:1048:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)

To Reproduce

ns migrate --log trace

Expected behavior
Succesful migration

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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.

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện ns migrate --log trace với các phiên bản CLI và runtime được báo cáo. Kiểm tra nativescript/lib/common/child-process.js, nơi lỗi của tiến trình npm được báo cáo, sau đó xác định nguyên nhân khiến quá trình cài đặt Android thoát với mã 1; hoàn thành khi quá trình di chuyển hoàn tất thành công.

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

Đánh giá

Công nghệ
android, javascript
Lĩnh vực
cli, mobile
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

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.