安装type-graphql报错
来源:8-7 创建页面路由,制定接口规范(下)

兰博万
2023-04-23
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: drop-server@0.0.1
npm ERR! Found: graphql@16.6.0
npm ERR! node_modules/graphql
npm ERR! graphql@"^16.6.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer graphql@"^15.3.0" from type-graphql@1.1.1
npm ERR! node_modules/type-graphql
npm ERR! type-graphql@"^1.1.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! C:\Users\panpengfei.TIGER8\AppData\Local\npm-cache_logs\2023-04-23T09_27_59_240Z-eresolve-report.txt
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\panpengfei.TIGER8\AppData\Local\npm-cache_logs\2023-04-23T09_27_59_240Z-debug-0.log
1回答
-
黑石
2023-04-25
您可以先把 node modules 文件夹删除,然后重新 pnpm i 安装下包。
00
相似问题