npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: shopping-project@0.1.0
npm ERR! Found: vue@2.7.16
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.0" from vant@3.6.12
npm ERR! node_modules/vant
npm ERR! vant@"3" 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 C:\open\node_cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\open\node_cache\_logs\2024-06-18T09_28_54_130Z-debug.log```
因为node版本太高,在下载vant后面加上
–legacy-peer-deps
npm i vant -S --legacy-peer-deps
就OK了