➜ npm i egg-bin --save-dev
npm WARN ERESOLVE overriding peer dependency
npm WARN Found: mocha@6.2.3
npm WARN node_modules/mocha
npm WARN   mocha@"^6.0.2" from egg-bin@4.16.2
npm WARN   node_modules/egg-bin
npm WARN     dev egg-bin@"^4.11.0" from the root project
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer mocha@">=1.18 <6" from co-mocha@1.2.2
npm WARN node_modules/co-mocha
npm WARN   co-mocha@"^1.2.2" from egg-bin@4.16.2
npm WARN   node_modules/egg-bin
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: chokidar@2.1.8
npm ERR! node_modules/chokidar
npm ERR!   chokidar@"^2.0.1" from egg-ts-helper@1.25.9
npm ERR!   node_modules/egg-ts-helper
npm ERR!     egg-ts-helper@"^1.25.2" from egg-bin@4.16.2
npm ERR!     node_modules/egg-bin
npm ERR!       dev egg-bin@"^4.11.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peerOptional chokidar@"^3.3.0" from nunjucks@3.2.3
npm ERR! node_modules/nunjucks
npm ERR!   nunjucks@"^3.1.3" from egg-ci@1.18.0
npm ERR!   node_modules/egg-ci
npm ERR!     dev egg-ci@"^1.11.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 /Users/hu/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/hu/.npm/_logs/2021-06-08T13_11_00_651Z-debug.log➜ node -v
v14.15.1
➜ npm -v
7.9.0链接: https://eggjs.org/zh-cn/intro/quickstart.html
执行完 npm init egg --type=simple 后
再执行 npm i
也会报上面的错误。

