Jelajahi Sumber

:memo: add WORKDIR

Jeremy Zheng 3 tahun lalu
induk
melakukan
6447b24e44
1 mengubah file dengan 4 tambahan dan 2 penghapusan
  1. 4 2
      documents/development/frontend/README.md

+ 4 - 2
documents/development/frontend/README.md

@@ -12,15 +12,16 @@ tar xf node_modules.tar.xz
 ### online
 
 ```bash
-yarn config set registry 'https://registry.npmmirror.com/' --global # for China users
+cd dashboard
 yarn install
 ```
 
 - for windows user, download [Node.js](https://nodejs.org/en/download/current/) and then,
 
   ```bash
-  npm config set registry 'https://registry.npmmirror.com/' --global # for China user
+  npm config set registry 'https://registry.npmmirror.com/' --global # ONLY for China user
   npm install -g yarn
+  yarn config set registry 'https://registry.npmmirror.com/' --global # ONLY for China users
   ```
 
 ![dashboard.png](dashboard.png)
@@ -28,6 +29,7 @@ yarn install
 ## 开发模式启动 [dashboard](http://localhost:3000)
 
 ```bash
+cd dashboard
 yarn start
 ```