npm WARN eslint-plugin-vue@6.2.2 需要 eslint@^5.0.0 的对等体 || ^6.0.0 但已安装 none

npm WARN eslint-plugin-vue@6.2.2 requires a peer of eslint@^5.0.0 || ^6.0.0 but none is installed

我的 Laravel 项目中已经有一个高于 5.0.0eslint 版本,为什么我会收到此错误消息?

$ npm install
npm WARN eslint-plugin-vue@6.2.2 requires a peer of eslint@^5.0.0 || ^6.0.0 but none is installed. You must install peer dependencies yourself.
$ eslint -v
v7.9.0

阅读插入符号“^”在语义版本语法中的作用。 一般来说,插入符号意味着: ^version “与版本兼容”,会将您更新到所有未来的 minor/patch 版本,而不会增加主要版本。 ^2.3.4 将使用从 2.3.4 到 <3.0.0 的版本。

由于你的版本是7.9.0,既不兼容6也不兼容5,所以报错是正常的。