Shell:5.3-/ bin / zsh
节点:12.13.0-〜/ .nvm / versions / node / v12.13.0 / bin / node
npm:6.12.0-〜/ .nvm / versions / node / v12.13.0 / bin / npm
babel-plugin-styled-components:^ 1.10.6 => 1.10.6
即使我可以在node_modules中看到软件包,为什么也收到此警告
yarn add eslint-config-airbnb
yarn add v1.19.1
[1/4] ? Resolving packages...
[2/4] ? Fetching packages...
[3/4] ? Linking dependencies...
warning "eslint-config-airbnb > eslint-config-airbnb-base@14.0.0" has unmet peer dependency "eslint-plugin-import@^2.18.2".
warning " > eslint-config-airbnb@18.0.1" has unmet peer dependency "eslint-plugin-import@^2.18.2".
warning " > eslint-config-airbnb@18.0.1" has unmet peer dependency "eslint-plugin-jsx-a11y@^6.2.3".
warning " > eslint-config-airbnb@18.0.1" has incorrect peer dependency "eslint-plugin-react-hooks@^1.7.0".
[4/4] ? Building fresh packages...
success Saved lockfile.
success Saved 3 new dependencies.
info Direct dependencies
└─ eslint-config-airbnb@18.0.1
info All dependencies
├─ confusing-browser-globals@1.0.9
├─ eslint-config-airbnb-base@14.0.0
└─ eslint-config-airbnb@18.0.1
✨ Done in 3.24s.
yarn add styled-components@beta
yarn add v1.19.1
[1/4] ? Resolving packages...
[2/4] ? Fetching packages...
[3/4] ? Linking dependencies...
warning "styled-components > stylis-rule-sheet@0.0.10" has unmet peer dependency "stylis@^3.5.0".
warning " > styled-components@5.0.0-rc.1" has unmet peer dependency "react-is@>= 16.8.0".
[4/4] ? Building fresh packages...
success Saved 1 new dependency.
info Direct dependencies
└─ styled-components@5.0.0-rc.1
info All dependencies
└─ styled-components@5.0.0-rc.1
✨ Done in 3.19s.