/Users/abc/project/React/src/ git clone https://github.com/TommyHili/React-GoogleMap.git cd React-GoogleMap ls -1查看该目录下的文件列表,发现有以下几个:README.md , build , gulp , gulpfile.js , node_modules , package.json , src
npm install,根据 项目文件列表中的 package.json 文件,安装依赖的模块
control + c中断安装后,再次执行 npm install,问题仍然没有解决,又给出了下面这些提示:
sudo npm install -g n,再通过下面一行命令n stable 升级 node.js 到最新稳定版。可以查看堂主的这篇文章了解更多。 npm install,发现不报错误信息了,但是发现安装过程特别慢,这时候换到 npm 的淘宝镜像 npm --registry=https://registry.npm.taobao.org,再次执行 npm install,发现下面这个问题,
,应该是 react-dom 和 react 版本不匹配,根据提示安装 react@^0.14.8 ,执行命令 npm install react@^0.14.8 npm start,

http://localhost:3000/可以查看。
相关文章推荐: