在vue的脚手架中安装vant包报错
问题的产生的原因
nodejs的环境和vant包不兼容,安装vue的环境是
vue@"^2.6.14" from the root project
安装vant包的环境
RR! peer vue@"^3.0.0" from vant@3.5.1
问题解决的方法
npm ERR! Fix the upstream dependency conflict, or retry。 修复上流环境依赖冲突,或者重试
npm ERR! this command with --force, or --legacy-peer-deps。 解决方法,命令后面添加--force, or --legacy-peer-deps