我只是从事开发工作,所以我认为这就是为什么我可能不会遇到依赖关系的原因。我(似乎)在主要依赖项中有要求。这是我最近看到的内容,然后是我的包裹清单。谢谢。
我写的更多,因为没有足够的文本来匹配代码。我想我需要知道何时以及在何处安装缺少的依赖项。他们似乎是多余的。我不确定我缺少什么。我看过有关该主题的几篇文章,但目前尚不清楚。
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN @material-ui/core@3.8.3 requires a peer of react@^16.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN @material-ui/core@3.8.3 requires a peer of react-dom@^16.3.0 ....
npm WARN @material-ui/icons@3.0.2 requires a peer of react@^16.3.0 ....
npm WARN @material-ui/icons@3.0.2 requires a peer of react-dom@^16.3.0 ....
npm WARN @material-ui/system@3.0.0-alpha.1 requires a peer of react@^16.3.0 ....
npm WARN @material-ui/system@3.0.0-alpha.1 requires a peer of react-dom@^16.3.0 ....
npm WARN @material-ui/utils@3.0.0-alpha.3 requires a peer of react@^16.3.0 ....
npm WARN @material-ui/utils@3.0.0-alpha.3 requires a peer of react-dom@^16.3.0 ....
npm WARN eslint-config-react-app@3.0.6 requires a peer of babel-eslint@9.x ....
npm WARN eslint-config-react-app@3.0.6 requires a peer of eslint-plugin-flowtype@2.x ....
npm WARN react-event-listener@0.6.5 requires a peer of react@^16.3.0 ....
npm WARN react-hot-loader@4.6.3 requires a peer of react@^15.0.0 || ^16.0.0 ....
npm WARN react-hot-loader@4.6.3 requires a peer of react-dom@^15.0.0 || ^16.0.0 ....
npm WARN react-transition-group@2.5.2 requires a peer of react@>=15.0.0 ....
npm WARN react-transition-group@2.5.2 requires a peer of react-dom@>=15.0.0 ....
npm WARN recompose@0.30.0 requires a peer of react@^0.14.0 || ^15.0.0 || ^16.0.0 ....
来自package.json
"dependencies": {
"@material-ui/core": "^3.8.3",
"@material-ui/icons": "^3.0.2",
"prop-types": "^15.6.2",
"react": "16.7.0-alpha.2",
"react-dom": "16.7.0-alpha.2",
"react-hot-loader": "^4.6.3",
"typeface-roboto": "0.0.54"
},
"devDependencies": {
"@babel/core": "^7.2.2",
"babel-eslint": "^10.0.1",
"babel-preset-airbnb": "^3.2.0",
"cross-env": "^5.2.0",
"eslint": "^5.12.0",
"eslint-config-airbnb": "^17.1.0",
"eslint-config-prettier": "^3.5.0",
"eslint-config-react-app": "^3.0.6",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^6.1.2",
"eslint-plugin-react": "^7.12.3",
"eslint-plugin-react-hooks": "0.0.0",
"opn-cli": "^4.0.0",
"parcel-bundler": "^1.11.0",
"source-map-explorer": "^1.6.0"
}