make test on fresh clone failes due to undeclared dependencies
- Ngôn ngữ chính
- JavaScript
- Star
- 1.9k
- Fork
- 359
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
# Steps to reproduce
```
git clone https://github.com/caolan/nodeunit.git
cd nodeunit
make test
```
# Expected behaviour
All tests pass
# Actual behaviour
```
nodejs ./bin/nodeunit test
module.js:471
throw err;
^
Error: Cannot find module 'ejs'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (/home/matthew/Documents/Projects/nodeunit/nodeunit/lib/reporters/junit.js:18:11)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
Makefile:148: recipe for target 'test' failed
make: *** [test] Error 1
```
# Commentary
The make script should run `npm install ejs` and `npm install should`, since those are dependencies.
I'm new to nodejs and Make files, so I'm not quite sure how to do this.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Bắt đầu với target test trong Makefile quanh dòng 148 và kiểm tra cách các dependency được khai báo hoặc cài đặt. Tái hiện lỗi khi clone mới, tính đến các dependency còn thiếu ejs và should, rồi xác nhận rằng make test chạy thành công mà không cần cài đặt thủ 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ệ
- javascript, node.js
- Lĩnh vực
- build-system, testing-qa
- Loại issue
- Lỗi
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 42/100