Uniswap
如何在本地執行 uniswap 應用程序界面?
幾天來,我一直在嘗試在本地執行 uniswap v3 應用程序界面(https://app.uniswap.org/#/swap)。
參考網址:https ://github.com/ChainSafe/uniswap-frontend
https://github.com/Uniswap/interface
但我遇到了同樣的錯誤。
>npm install npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: @uniswap/interface@undefined npm ERR! Found: react@17.0.2 npm ERR! node_modules/react npm ERR! dev react@"^17.0.1" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"^16.8.0" from @reach/dialog@0.10.5 npm ERR! node_modules/@reach/dialog npm ERR! dev @reach/dialog@"^0.10.3" 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.
如果有人能解決這個問題,我們將不勝感激。謝謝。
嘗試使用 Yarn,它對我有幫助。如果沒有,請檢查您是否擁有正確的節點版本。