前言 今天在vue项目中安装DataV的时候报如下错误: ERESOLVE unable to resolve dependency tree (无法解决依赖关系树) npm ERR! Could not resolve dependency: (不能解决依赖关系:) npm ERR! Fix the upstream dependency conflict, or retry 后面尝试着跟着提示在命令行后边加上了 --force 结果就成功了 npm install @jiaminghi/data-view --force