React - 環境準備

1. 下載 node.js,在 https://nodejs.org/en/download/ 選擇合適的版本。node

 

2. 檢查 node.js 是否安裝成功。 react

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

 

3. 安裝 create-react-app。npm

npm install -g create-react-app

 

4. 建立應用。app

create-react-app my-app

 

5. 運行應用。code

cd my-app
nmp start
相關文章
相關標籤/搜索