1. 检查node npm
node --version and npm --version
2. 安装命令
npm install -g create-react-app
3. 创建工作目录
create-react-app my-app
4. 启动项目
cd my-app
npm start
You should see "Welcome to React" on http://localhost:3000 in your browser.
1. 检查node npm
node --version and npm --version
2. 安装命令
npm install -g create-react-app
3. 创建工作目录
create-react-app my-app
4. 启动项目
cd my-app
npm start
You should see "Welcome to React" on http://localhost:3000 in your browser.