NPM表示缺少对等依赖项,但已安装软件包

NPM表示缺少对等依赖项,但已安装软件包,npm,strapi,Npm,Strapi,我正在尝试安装一个Strapi项目。运行npm安装后,我收到以下对等依赖项警告: npm WARN eslint-config-airbnb@13.0.0 requires a peer of eslint@^3.9.1 but none is installed. You must install peer dependencies yourself. npm WARN eslint-config-airbnb@13.0.0 requires a peer of eslint-plugin-j

我正在尝试安装一个Strapi项目。运行npm安装后,我收到以下对等依赖项警告:

npm WARN eslint-config-airbnb@13.0.0 requires a peer of eslint@^3.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-config-airbnb@13.0.0 requires a peer of eslint-plugin-jsx-a11y@^2.2.3 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-config-airbnb@13.0.0 requires a peer of eslint-plugin-react@^6.6.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-config-airbnb-base@10.0.1 requires a peer of eslint@^3.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN react-ga@2.5.6 requires a peer of prop-types@^15.6.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-ga@2.5.6 requires a peer of react@^15.6.2 || ^16.0 but none is installed. You must install peer dependencies yourself.
然而,当我检查这些软件包的安装版本时,一切似乎都很好。例如:

$ npm view eslint version
5.9.0
$ npm view prop-types version
15.6.2
这来自Strapi生成的package.json(我添加了对prop类型和react的依赖项)

这是否与本地和全局安装的软件包有关?非常感谢任何帮助

npm WARN eslint-config-airbnb@13.0.0 requires a peer of eslint@^3.9.1

意味着它需要3.9.x版本的eslint,因此您安装的5.9.0版本太高。我建议您更新到eslint config airbnb17.1.0版本,然后使用eslint 5.3.0

Oh wow,所以即使消息显示“未安装”,它实际上指的是它不是正确的版本?我认为这意味着它根本找不到版本。那么,解决方案是升级所有依赖的软件包以接受更高版本的已安装软件包吗?
npm WARN eslint-config-airbnb@13.0.0 requires a peer of eslint@^3.9.1