簡體   English   中英

React Codemirror2 沒有安裝

[英]React Codemirror2 does not install

當我嘗試安裝 react-codemirror2 時出現錯誤並且沒有安裝在我的應用程序中(我的反應版本是 @17.0.2)為什么它沒有安裝?

下面的錯誤列表

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: code-editor-with-react@0.1.0
npm ERR! Found: react@17.0.2
npm ERR! node_modules/react
npm ERR!   react@"^17.0.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@">=15.5 <=16.x" from react-codemirror2@7.2.1
npm ERR! node_modules/react-codemirror2
npm ERR!   react-codemirror2@"*" 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\Mahdi\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:

如果其他人像我一樣有同樣的問題他/她可以安裝“react-codemirror2-react-17”而不是“react-codemirror2”它對我有用。

我遇到了類似的錯誤消息。 嘗試使用npm install react-codemirror2 --legacy-peer-deps

暫無
暫無

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

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