依赖冲突解决
npm install --legacy-peer-deps
或
npm install --force
npm ERR! While resolving: apollo-template-app@1.0.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! peer react@">=16.8" from @tippyjs/react@4.2.6
npm ERR! node_modules/@tippyjs/react
npm ERR! @tippyjs/react@"^4.2.6" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.14.0" from react-dom@16.14.0
npm ERR! node_modules/react-dom
npm ERR! react-dom@"^16.8.0" from the root project
npm ERR! peer react-dom@">=16.8" from @tippyjs/react@4.2.6
npm ERR! node_modules/@tippyjs/react
npm ERR! @tippyjs/react@"^4.2.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/chengjo/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/chengjo/.npm/_logs/2022-10-13T06_50_58_977Z-debug-0.log