Well, firstly, those aren't errors, they're warnings. They won't actually stop your code from running, they're just there to give you a heads up if there's something wrong with your dependencies.
Effectively, peerDependencies
are a way for packages to specify, "to use me, you should also have x version of y package installed". In your case, you have two issues:
- That version of
react-datepicker
expects you to be using React 14, but you have React 15. If you update react-datepicker
to the newest version, that one will be compatible with v15 - that said, there were very few breaking changes between those two version of React if I remember correctly, so if you're stuck using that particular version of the date picker for some reason, it should be safe to ignore that warning. Your mileage may vary, though.
babel-loader
relies on Webpack, but you don't have any version of it installed. This does seem like a mistake on your part; run npm install webpack --save-dev
and that should go away.
Hopefully with that context you'll be able to understand how to interpret those warnings in the future!
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…