make test on fresh clone failes due to undeclared dependencies
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 42/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- javascript, node.js
调研方向
从 Makefile 第148行附近的 test 目标开始,检查依赖项是如何声明或安装的。复现全新克隆时的失败,考虑缺失的 ejs 和 should 依赖项,并确认无需手动安装即可通过 make test。
由索引模型根据 Issue 内容生成。
描述
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.<anonymous> (/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.
- 主要语言
- JavaScript
- 星标
- 1.9k
- 派生
- 359
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
caolan/nodeunit 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 25/100
-
难度 3/5 1-2 天 新手友好度 35/100
-
难度 3/5 1-2 天 新手友好度 35/100
-
难度 5/5 一周以上 新手友好度 20/100
-
难度 5/5 一周以上 新手友好度 25/100
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 65/100
-
[BUG] Tools returned by input processors get an empty context.agent.agentId可能重新可做 关联的 PR 已关闭且未合并。 未关闭@mastra/core effort:low impact:medium status: auto-triaged Tools
难度 2/5 1-3 小时 新手友好度 68/100
mastra-ai/mastra#26794 · 3 条评论 ·
维护者通常 1 天内回复
-
release:v5.34
难度 1/5 1-3 小时 新手友好度 88/100
Jason-Vaughan/TangleClaw#2365 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
-
enhancement
难度 1/5 1-3 小时 新手友好度 85/100
holepunchto/hrpc-test#28 ·