NativeScript / NativeScript/nativescript-cli
`tns plugin add/remove` fails if there is dependency referenced as file
Đang mở
Chưa có ai nhận issue này.
bug
plugins
severity: low
- 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ả
Steps to reproduce:
git clone https://github.com/PeterStaev/NativeScript-Drop-Down
cd NativeScript-Drop-Down/demo
tns plugin remove tns-core-modules
Result:
npm ERR! addLocal Could not install /Users/topuzov/Git/nativescript-cli-tests/NativeScript-Drop-Down/bin/dist
npm ERR! Darwin 16.1.0
npm ERR! argv "/usr/local/Cellar/node@6/6.9.5/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v6.9.5
npm ERR! npm v3.10.10
npm ERR! path /Users/topuzov/Git/nativescript-cli-tests/NativeScript-Drop-Down/bin/dist
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/Users/topuzov/Git/nativescript-cli-tests/NativeScript-Drop-Down/bin/dist'
npm ERR! enoent ENOENT: no such file or directory, open '/Users/topuzov/Git/nativescript-cli-tests/NativeScript-Drop-Down/bin/dist'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! /Users/topuzov/Git/nativescript-cli-tests/NativeScript-Drop-Down/demo/npm-debug.log
tns plugin add/remove fails if you have another dependency referenced with path:
"dependencies": {
"nativescript-drop-down": "file:../bin/dist",
"tns-core-modules": "^2.5.0"
},
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.
Hướng nghiên cứu
Tái hiện lỗi trong NativeScript-Drop-Down/demo bằng dependency "nativescript-drop-down": "file:../bin/dist" và tns plugin remove tns-core-modules. Bắt đầu bằng cách truy vết cách tns plugin add/remove xử lý các dependency dựa trên file. Hoàn thành khi cả hai lệnh đều hoạt động mà không có lỗi ENOENT của npm.
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
- Lĩnh vực
- cli
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100