Skip to content

最新的v0.1.2中执行Dockerfile构建docker镜像出错 #58

Closed

Description

@NEPDream

例行检查

  • 我已确认目前没有类似 issue
  • 我已确认我已升级到最新版本
  • 我已完整查看过项目 README,尤其是常见问题部分
  • 我理解并愿意跟进此 issue,协助测试和提供反馈
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

问题描述
代码版本v0.1.2,使用项目提供的Dockerfile,构建镜像时候,在执行到npm install时候失败

7.742 npm ERR! code ERESOLVE
7.747 npm ERR! ERESOLVE unable to resolve dependency tree
7.756 npm ERR! 
7.757 npm ERR! While resolving: react-template@0.1.0
7.762 npm ERR! Found: @visactor/vchart@1.7.5
7.762 npm ERR! node_modules/@visactor/vchart
7.762 npm ERR!   @visactor/vchart@"~1.7.2" from the root project
7.762 npm ERR! 
7.762 npm ERR! Could not resolve dependency:
7.762 npm ERR! peer @visactor/vchart@"~1.8.8" from @visactor/vchart-semi-theme@1.7.3
7.762 npm ERR! node_modules/@visactor/vchart-semi-theme
7.762 npm ERR!   @visactor/vchart-semi-theme@"~1.7.2" from the root project
7.762 npm ERR! 
7.762 npm ERR! Fix the upstream dependency conflict, or retry
7.762 npm ERR! this command with --force, or --legacy-peer-deps
7.762 npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
7.762 npm ERR! 
7.762 npm ERR! See /root/.npm/eresolve-report.txt for a full report.
7.762 
7.762 npm ERR! A complete log of this run can be found in:
7.762 npm ERR!     /root/.npm/_logs/2024-01-31T09_28_49_507Z-debug-0.log

复现步骤

git clone git@github.com:Calcium-Ion/new-api.git
git switch --detach v0.1.2
cd new-api
docker build -t .

预期结果
成功构建镜像

相关截图
image

Activity

  1. NEPDream commented on Jan 31, 2024

    @NEPDream
    Author

    使用最新的main分支,构建成功,没有问题

  2. added a commit that references this issue on Dec 1, 2025
    8631a2c
  3. added a commit that references this issue on Apr 24, 2026
    bc87b02
  4. added a commit that references this issue on Sep 10, 2026
    1d78aeb
  5. added 2 commits that reference this issue on Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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