Git clone NPM install error:
// Error message:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: vue-wechat-auth@2.0. 0
npm ERR! Found: vue@2.612.
npm ERR! node_modules/vue
npm ERR! vue@"^ 2.6.11." " from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer vue@"3.0.11" from @vue/compiler-sfc@3.011.
npm ERR! node_modules/@vue/compiler-sfc
npm ERR! peer @vue/compiler-sfc@14 "" ^ 3.0.0 - beta. from @vue/cli-service@4.512.
npm ERR! node_modules/@vue/cli-service
npm ERR! dev @vue/cli-service@"~ 4.5.0." " from the root project
npm ERR! 1 more (@vue/cli-plugin-babel)
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 C:\Users\Oct1a\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Oct1a\AppData\Local\npm-cache_logs\2021-04-26T08_57_47_739Z-debug.log
Copy the code
Upgrade or downgrade your own Node version, and then reinstall the dependency package. However, it is troublesome to upgrade or downgrade your own Node version, and then reinstall the dependency package. NPM install is available.
npm i --legacy-peer-deps
Copy the code