NativeScript / NativeScript/nativescript-cli

Self tns validation...

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

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

feature hacktoberfest help wanted
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ả

I've seen this issue occur the last several times I've upgraded the nativescript command on my Macintosh. I haven't seen this on my windows 7 box.

It installs, and gives me the normal list of all the modules it has installed; but it does not run any of the post-install stuff. However, the install is bad, some modules are missing even though it "appears" like everything installed properly (because of the list of all the modules it just installed successfully is long).

Running TNS will work in some cases; but in most cases depending on which module wasn't installed it will fail at that point with random errors.

I am recommending that on install part of the post install step would be to load each npm module that you are depending upon in a try catch and verify they all exist properly. Then set a flag to the current version. On startup of the tns command, see if this flag is set to the current version, if it isn't set then run this check. In this way you can at least tell the end user that the install is bad and to reinstall tns command.

If others are running into this; it is very confusing why it "appears" to have installed but it is broken in random places. I've learned from using tns for a long time that if it doesn't run the post install checks just to do another "npm install -g nativescript" until it actually runs the post install scripts...

Please note I do realize this could be an issue with my Node/Npm version so I'm going to leave this info here in case others run into this. I plan updating both to the latest 5.x release later so we shall see ...
Node v5.11, npm v3.32

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

Issue không nêu tên tệp, bài kiểm thử hoặc entry point nào. Hãy bắt đầu bằng cách tái hiện quá trình cài đặt toàn cục trên macOS với Node v5.11 và npm v3.32, sau đó truy vết xem việc xác thực sau cài đặt có được chạy hay không và các module bắt buộc có được tải hay không; công việc được xem là hoàn tất khi cũng có tín hiệu lỗi rõ ràng nếu quá trình cài đặt chưa hoàn tất.

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

Đánh giá

Công nghệ
javascript, node.js
Lĩnh vực
cli
Loại issue
Lỗi
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
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.