[React|M1] 創建一個React

Mac M1

參考github:create-react-app

點擊網站來安裝Node.js

查看是否安裝成功

node -v
npm -v

創建一個react

npx create-react-app react-store

打開剛才創建的react

cd react-store
npm start

成功如下:

  Local:            http://localhost:3000
  On Your Network:  http://192.168.100.4:3000

Note that the development build is not optimized.
To create a production build, use npm run build.

webpack compiled successfully

打開瀏覽器填入http://localhost:3000/

發佈留言