You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by zs...@apache.org on 2019/07/02 07:14:17 UTC

[incubator-weex-site] branch master updated: Update docs-setup

This is an automated email from the ASF dual-hosted git repository.

zshshr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-weex-site.git


The following commit(s) were added to refs/heads/master by this push:
     new 789fe1c  Update docs-setup
     new 12ee27f  Merge pull request #444 from Txink/weex-docs
789fe1c is described below

commit 789fe1cc2410ae5238c0d384bd807daab74b7b4d
Author: txink <12...@qq.com>
AuthorDate: Tue Jul 2 12:16:07 2019 +0800

    Update docs-setup
---
 docs/guide/develop/setup-develop-environment.md    | 13 +++++++++++--
 docs/zh/guide/develop/setup-develop-environment.md | 12 ++++++++++--
 2 files changed, 21 insertions(+), 4 deletions(-)

diff --git a/docs/guide/develop/setup-develop-environment.md b/docs/guide/develop/setup-develop-environment.md
index e269a9f..6106fe8 100644
--- a/docs/guide/develop/setup-develop-environment.md
+++ b/docs/guide/develop/setup-develop-environment.md
@@ -12,10 +12,19 @@ There are many ways to install Node.js. The easiest way is to download the execu
 
 Run the following commands in a terminal:
 
+### OSX
 ```bash
-$ npm install -g weex-toolkit
-$ weex -v
+$ sudo chmod -R 777 /usr/local/lib/node_modules/
+$ npm i -g weex-toolkit // Do not use sudo
+$ weex -v 
 ```
+
+### Windows
+```bash
+$ npm i -g weex-toolkit 
+$ weex -v 
+```
+
 After the installation is complete, you can use the `weex help` command to verify that the installation is successful. It will display all the commands supported by `weex`. You can also check your local development environment with the `weex doctor` command.
 
 ## Generate a new Weex project
diff --git a/docs/zh/guide/develop/setup-develop-environment.md b/docs/zh/guide/develop/setup-develop-environment.md
index 25bc537..7385243 100644
--- a/docs/zh/guide/develop/setup-develop-environment.md
+++ b/docs/zh/guide/develop/setup-develop-environment.md
@@ -16,14 +16,22 @@ Weex 官方提供了`weex-toolkit` 的脚手架工具来辅助开发和调试。
 
 通常,安装了 Node.js 环境,npm 包管理工具也随之安装了。因此,直接使用 npm 来安装 `weex-toolkit`, 你也可以通过 `yarn` 来进行安装。
 
-国内的开发者推荐将npm镜像切换至 [Taobao NPM 镜像](https://registry.npm.taobao.org)。
+国内的开发者推荐将npm镜像切换至 Taobao NPM 镜像 `https://registry.npm.taobao.org`。
 
 :::
 
 运行下面的命令安装最新的beta版本工具:
 
+### OSX环境
 ```bash
-$ npm install -g weex-toolkit@beta
+$ sudo chmod -R 777 /usr/local/lib/node_modules/
+$ npm i -g weex-toolkit // 安装不要使用sudo执行
+$ weex -v // 查看当前weex工具版本
+```
+
+### Windows环境
+```bash
+$ npm i -g weex-toolkit 
 $ weex -v // 查看当前weex工具版本
 ```