安装依赖时报错
886k opened this issue · comments
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: undefined@undefined
npm ERR! Found: react@18.2.0
npm ERR! node_modules/react
npm ERR! dev react@"18.2.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.0 || ^17.0.0" from @monaco-editor/react@4.2.1
npm ERR! node_modules/@monaco-editor/react
npm ERR! dev @monaco-editor/react@"4.2.1" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! /root/.npm/_logs/2023-04-21T10_10_42_361Z-eresolve-report.txt
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2023-04-21T10_10_42_361Z-debug-0.log
安装依赖...
fetch https://mirrors.aliyun.com/alpine/v3.17/main/x86_64/APKINDEX.tar.gz
fetch https://mirrors.aliyun.com/alpine/v3.17/community/x86_64/APKINDEX.tar.gz
OK: 497 MiB in 181 packages
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: undefined@undefined
npm ERR! Found: react@18.2.0
npm ERR! node_modules/react
npm ERR! dev react@"18.2.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.0 || ^17.0.0" from @monaco-editor/react@4.2.1
npm ERR! node_modules/@monaco-editor/react
npm ERR! dev @monaco-editor/react@"4.2.1" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! /root/.npm/_logs/2023-04-21T10_10_56_969Z-eresolve-report.txt
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2023-04-21T10_10_56_969Z-debug-0.log
安装依赖...
fetch https://mirrors.aliyun.com/alpine/v3.17/main/x86_64/APKINDEX.tar.gz
fetch https://mirrors.aliyun.com/alpine/v3.17/community/x86_64/APKINDEX.tar.gz
(1/4) Installing libjpeg-turbo (2.1.4-r0)
(2/4) Installing libjpeg-turbo-dev (2.1.4-r0)
(3/4) Installing jpeg-dev (9e-r0)
(4/4) Installing python3-dev (3.10.11-r0)
Executing busybox-1.35.0-r29.trigger
OK: 545 MiB in 185 packages
可以参考一下我这个地址的解决方案跳转