1 下载nodejs 安装
2 安装淘宝镜像 npm install -g cnpm --registry=https://registry.npm.taobao.org
3 安装vscode
3 vscode 打开文件夹目录 ,在控制台 执行 npm install -g create-react-app
4 安装完 create-react-app 之后 继续输入 create-react-app my-app
6 cd 项目名 下面继续执行 npm start 检测当前项目是否创建成功 正常情况下当输入命令之后 会直接打开默认浏览器预览 http://localhost:3000/ 此时会看到一个react的页面
7 执行完 npm start 之后可能会出现 Something is already running on port 3000. 解决办法:重新执行 :PORT=3001 npm start (这个端口只要不和3000相同就行)
8 es7 react 提示插件,写代码方便