canvas Peer dependency issue on npm install
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- javascript
- 领域
- build-system
调研方向
首先检查根目录 package.json 中 canvas 和 jest-environment-jsdom 的依赖声明,然后在报告的 Node/npm 设置下使用 npm install 重现冲突。比较兼容的依赖版本或配置选项,并在全新 checkout 无需 --legacy-peer-deps 即可成功安装时认为 issue 已完成。
由索引模型根据 Issue 内容生成。
描述
Bug Report
Description of the problem
npm install on fresh checkout gives me a conflicting peer dependency on [email protected] vs [email protected]
Using npm install --legacy-peer-deps gets around the issue.
Steps to reproduce
git clone https://github.com/foliojs/pdfkit.gitcd pdfkitnpm install
Error:
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/canvas
npm error dev canvas@"^3.0.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peerOptional canvas@"^2.5.0" from [email protected]
npm error node_modules/jest-environment-jsdom
npm error dev jest-environment-jsdom@"^29.7.0" from the root project
npm error
npm error Conflicting peer dependency: [email protected]
npm error node_modules/canvas
npm error peerOptional canvas@"^2.5.0" from [email protected]
npm error node_modules/jest-environment-jsdom
npm error dev jest-environment-jsdom@"^29.7.0" from the root project
Your environment
- pdfkit version: master
- Node version: v22.13.0 (npm v10.9.2)
- Operating System: macOS Sonoma 14.6.1
- 主要语言
- JavaScript
- 星标
- 10.7k
- 派生
- 1.2k
- 平均合并
- 21 小时 41 分钟
- 30 天内合并 PR
- 27
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
foliojs/pdfkit 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
PDFKit crashes when providing fonts as Buffer in table可能已有人在做 @ykw9263 于 132 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
foliojs/pdfkit#1743 · 13 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
foliojs/pdfkit#1512 · 1 条评论 · 2 个 reaction ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 45/100
维护者通常 1 天内回复
相似的 Issue
-
area:docs good first issue help wanted priority:medium type:chore
难度 2/5 1-3 小时 新手友好度 76/100
mahmutmft/courses-mcp#51 ·
维护者通常 1 天内回复
-
good first issue roadmap ux
难度 2/5 1-3 小时 新手友好度 88/100
AhmedNavaz/throughline#100 ·
-
good first issue
难度 1/5 1-3 小时 新手友好度 90/100
samiromer2/Ruby-Consent-Portal#26 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
sebastienros/jint#4449 ·
维护者通常 1 天内回复
-
area: site enhancement size: S
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复