之前在项目中同时使用react-router和history,执行npm install的时候报错,如图所示。  按照它给的报错提示,手动把package.json里面的history版本号改为1.13.1就好了。