caolan / caolan/nodeunit

make test on fresh clone failes due to undeclared dependencies

オープン
#351 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
1.9k
フォーク
359
PR マージ指標
30日以内にマージされた PR はありません

説明

# 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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

148行目付近のMakefileのtestターゲットから始め、依存関係がどのように宣言またはインストールされているかを調べます。新規クローンでの失敗を再現し、不足しているejsとshouldの依存関係を考慮したうえで、手動インストールなしでmake testが成功することを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript, node.js
領域
build-system, testing-qa
issue の種類
バグ
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
42/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。