When we run yarn
in a project with no node_modules
directory, we get the following warning message during the dependency installs:
warning " > bootstrap@4.4.1" has unmet peer dependency "jquery@1.9.1 - 3".
warning " > bootstrap@4.4.1" has unmet peer dependency "popper.js@^1.16.0".
However, it appears that bootstrap
and react-bootstrap
works fine without doing anything to fix these 2 warnings. package.json
also do not contain entries for these 2 packages.
Question: Why does Bootstrap and related files appear to continue working despite having unmet peer dependencies?
Isn't the whole point of yarn
and npm
be to manage these dependencies?
What is the proper way to resolve these warnings?
Part of packages.json
{
...
"dependencies": {
"bootstrap": "^4.4.1",
"react-bootstrap": "^1.0.0",
...
}
}