Calcium-Ion / new-api

AI模型接口管理与分发系统,支持将多种大模型转为OpenAI格式调用、支持Midjourney Proxy、Suno、Rerank,兼容易支付协议,仅供个人或者企业内部管理与分发渠道使用,请勿用于商业用途,本项目基于One API二次开发。
https://nekoapi.com
Apache License 2.0
3.01k stars 749 forks source link

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

Closed NEPDream closed 7 months ago

NEPDream commented 7 months ago

例行检查

问题描述 代码版本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

NEPDream commented 7 months ago

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