安装环境
Node.js https://nodejs.org/
reactjs https://reactjs.org/
更换npm淘宝源
$ npm config set registry https://registry.npm.taobao.org
-- 配置后可通过下面方式来验证是否成功
$ npm config get registry
环境检查
windows shift+右键 在此处打开命令行窗口
$ node -v
$ npm -v
新建项目
$ npx create-react-app my-app
$ cd my-app
$ npm start