我正在尝试安装一个 Strapi 项目。运行 npm install 后,我收到以下对等依赖警告:
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-types 和 react 的依赖项)
"devDependencies": {
"babel-eslint": "^7.1.1",
"eslint": "^4.19.1",
"eslint-config-airbnb": "^13.0.0",
"eslint-plugin-import": "^2.11.0",
"eslint-plugin-react": "^7.7.0"
},
"dependencies": {
"lodash": "^4.17.5",
"strapi": "3.0.0-alpha.15",
"strapi-utils": "3.0.0-alpha.15",
"strapi-hook-mongoose": "3.0.0-alpha.15",
"prop-types": "^15.6.0",
"react": "^15.6.2"
},
这是否与本地安装的软件包和全局安装的软件包有关?任何帮助都非常感谢!