安装yeoman$ npm install -g yo1安装generator-react-webapck$ npm install -g generator-react-webpack1新建一个工程cd到工程目录$ yo react-webpack1根据提示即可新建一个项目可能出现的错误