Commit 5025916ad95ae57942a0e6edcdca7e21a1beff27
1 parent
b4a7ebf0
docs(quick-start): update installation
Showing
2 changed files
with
11 additions
and
4 deletions
docs/en/getting-started/quick-start.md
| ... | ... | @@ -27,15 +27,18 @@ Vue.js: Front-end framework<br />Strapi.js: Open source Node.js Headless CMS to |
| 27 | 27 | ```bash |
| 28 | 28 | # by default, the current path is the root path for luban-h5 |
| 29 | 29 | cd back-end/h5-api |
| 30 | +# use yarn (⚠️not npm) install dependencies | |
| 31 | +# reference: https://github.com/ly525/luban-h5/issues/92 | |
| 30 | 32 | yarn install # install dependencies |
| 31 | 33 | |
| 32 | -npm run dev # dev | |
| 33 | -# additional notes: run `npm run localdev` if you want to debug it in vscode | |
| 34 | +yarn dev # dev | |
| 35 | +# additional notes: run `yarn localdev` if you want to debug it in vscode | |
| 34 | 36 | |
| 35 | -# #!en: default database is sqlite3(db location: h5-api/.tmp/data.db) | |
| 37 | +#!en: default database is sqlite3(db location: h5-api/.tmp/data.db) | |
| 36 | 38 | |
| 37 | -# 访问 http://locahost:1337/admin | |
| 38 | 39 | # visit http://locahost:1337/admin |
| 40 | + | |
| 41 | +Please read on to config the strapi admin | |
| 39 | 42 | ``` |
| 40 | 43 | |
| 41 | 44 | ### 2. Something important | ... | ... |
docs/zh/getting-started/quick-start.md
| ... | ... | @@ -56,6 +56,8 @@ yarn config set registry https://registry.npm.taobao.org |
| 56 | 56 | ```bash |
| 57 | 57 | # 默认当前目录为 luban 项目的根目录 |
| 58 | 58 | cd back-end/h5-api |
| 59 | +# 使用 yarn 安装依赖,而非 yarn | |
| 60 | +# 原因参见:https://github.com/ly525/luban-h5/issues/92 | |
| 59 | 61 | yarn install # 安装依赖 |
| 60 | 62 | |
| 61 | 63 | npm run dev |
| ... | ... | @@ -66,6 +68,8 @@ npm run dev |
| 66 | 68 | |
| 67 | 69 | # 访问 http://locahost:1337/admin |
| 68 | 70 | # visit http://locahost:1337/admin |
| 71 | + | |
| 72 | +请继续阅读,进行相关配置 | |
| 69 | 73 | ``` |
| 70 | 74 | |
| 71 | 75 | ### 2. 注意事项 | ... | ... |