如果出现警告

"export 'RouterContext' was not found in 'react-router'

那就按照以下方法解决

首先使用

然后使用

然后

cnpm install

最后

cnpm install react-router-dom@4.3.1 -S

启动

npm start

或者

https://www.cnblogs.com/leinov/p/5332124.html

^这个符号表示 下载 最近的一个大版本       这是个坑!

可以吧^换成~