Skip to content

bug: nodejs包依赖问题 #637

@madobet

Description

@madobet

Environment 环境信息

不需要

Description 描述

dev 安装 clone 了 git 仓库,checkout v0.12.4,npm i 报错:

npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/electron
npm error   dev electron@"34.0.2" from the root project
npm error
npm error Could not resolve dependency:
npm error peer electron@">=9.0.0 <33.0.0" from [email protected]
npm error node_modules/menubar
npm error   menubar@"9.5.1" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.

package.json 里指定的 electron 版本超出了 menubar 9.5.1 指定的 electron 版本范围,要 --force 吗?
是不是还是整体调整一下依赖们的版本比较好?避免潜在问题?

Steps to Reproduce 复现方式

clone git 仓库,checkout v0.12.4,npm i

Additional Context 额外上下文

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions