簡體   English   中英

ERESOLVE 無法解析 redux 的依賴關系樹

[英]ERESOLVE unable to resolve dependency tree for redux

我已經嘗試過 --force 和 --legacy-peer-deps,但似乎沒有任何效果。 我目前在 macOS 中使用 node@10.2.0 。

hiteshagarwal@Hiteshs-MBP kuber % npm i
(node:48924) ExperimentalWarning: The fs.promises API is experimental
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: client@0.1.0
npm ERR! Found: redux@4.1.0
npm ERR! node_modules/redux
npm ERR!   redux@"^4.0.1" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer redux@"^2.0.0 || ^1.0.0" from redux-log-slow-reducers@0.0.2
npm ERR! node_modules/redux-log-slow-reducers
npm ERR!   redux-log-slow-reducers@"0.0.2" 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! See /Users/hiteshagarwal/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/hiteshagarwal/.npm/_logs/2021-05-09T13_52_12_776Z-debug.log

在用 --legacy-peer-deps 解決沖突問題后,還有其他許多錯誤反映在 node-gyp、gcc、const denominator 等方面。現在已經解決。 npm 和節點版本之間存在沖突。 我正在使用節點 10.2.0 和 npm 5.2.0 並且節點 16.* 版本中也有一些節點 gyp 緩存文件,這就是原因。 我已經用所有 nvm、npm 和節點文件和其他緩存清理了系統,然后從 web 重新安裝了 node@10.2.0,它包含 ZBB30E85411B56DF41296726AB445DCF8 能夠解決我的問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM