Editor
Editor copied to clipboard
Fix peer dependencies to avoid --legacy-peer-deps
Installation instruction say to simply run npm install.
On my Mac M1 running Venture 13.1, when I run npm install, I get the following:
npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: [email protected] npm ERR! Found: [email protected] npm ERR! node_modules/react npm ERR! react@"16.12.0" from the root project npm ERR! peer react@">=16.0.0" from @ant-design/[email protected] npm ERR! node_modules/@ant-design/icons npm ERR! @ant-design/icons@"^4.7.0" from [email protected] npm ERR! node_modules/antd npm ERR! antd@"4.18.7" from the root project npm ERR! 47 more (@ant-design/react-slick, @blueprintjs/core, ...) npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"^17.0.2" from [email protected] npm ERR! node_modules/flexlayout-react npm ERR! flexlayout-react@"0.6.6" from the root project npm ERR! npm ERR! Conflicting peer dependency: [email protected] npm ERR! node_modules/react npm ERR! peer react@"^17.0.2" from [email protected] npm ERR! node_modules/flexlayout-react npm ERR! flexlayout-react@"0.6.6" 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/wbagwell/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in: npm ERR! /Users/wbagwell/.npm/_logs/2023-02-04T04_42_06_823Z-debug-0.log
Here's the log: 2023-02-04T04_42_06_823Z-debug-0.log