【问题标题】:Why i can't install react-router-transition in 1.4.0 version?为什么我无法在 1.4.0 版本中安装 react-router-transition?
【发布时间】:2021-11-30 16:17:01
【问题描述】:
$ npm install -S react-router-transition@1.4.0
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: react-to-do@1.0.0
npm ERR! Found: react-router-dom@5.3.0
npm ERR! node_modules/react-router-dom
npm ERR!   react-router-dom@"^5.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react-router-dom@"^4.1.1" from react-router-transition@1.4.0
npm ERR! node_modules/react-router-transition
npm ERR!   react-router-transition@"1.4.0" 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 C:\Users\Michał\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Michał\AppData\Local\npm-cache\_logs\2021-11-30T16_05_54_608Z-debug.log

【问题讨论】:

    标签: javascript node.js reactjs npm


    【解决方案1】:

    下载此版本时似乎存在版本冲突。您可以使用 --force 强制下载,但这可能会默默地破坏。

    【讨论】:

    • 我使用了 --force,它有帮助,谢谢
    猜你喜欢
    • 2013-08-11
    • 1970-01-01
    • 2022-11-18
    • 2018-07-07
    • 2021-11-23
    • 1970-01-01
    • 2021-04-04
    • 1970-01-01
    • 2020-09-09
    相关资源
    最近更新 更多