React - environment preparation

1. Download node.js and   select the appropriate version at https://nodejs.org/en/download/ .

 

2. Check if node.js is installed successfully. 

hueyMB:~ zhisenzheng$ node -v
v8.11.1
hueyMB: ~ zhisenzheng $ npm -v
5.6.0

 

3. Install create-react-app.

npm install -g create-react-app

 

4. Create an application.

create-react-app my-app

 

5. Run the application.

cd my-app
nmp start

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325321057&siteId=291194637