wechaty / getting-started

A Starter Project Template for Wechaty works out-of-the-box
https://gitpod.io/#https://github.com/wechaty/wechaty-getting-started
Apache License 2.0
774 stars 342 forks source link

npm ERR! ERESOLVE unable to resolve dependency tree #224

Closed huan closed 2 years ago

huan commented 2 years ago
$ npm i
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! Found: wechaty-puppet-mock@0.35.5
npm ERR! node_modules/wechaty-puppet-mock
npm ERR!   dev wechaty-puppet-mock@"^1.0.2" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! dev wechaty-puppet-mock@"^1.0.2" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: wechaty-puppet@1.0.1
npm ERR! node_modules/wechaty-puppet
npm ERR!   peer wechaty-puppet@"^1.0.1" from wechaty-puppet-mock@1.0.2
npm ERR!   node_modules/wechaty-puppet-mock
npm ERR!     dev wechaty-puppet-mock@"^1.0.2" 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 /home/huan/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/huan/.npm/_logs/2021-10-30T07_30_46_358Z-debug.log
huan commented 2 years ago

Solved by upgrading the peerDependencies from our dependencies.