Mac下weex開發環境的搭建

一、安裝nodejs

? ? ? ?brew install node

二、安裝week

? ? ? sudo cnpm ?install -g weex-toolkit@beta

? ? ?注意:官方文檔上說,weex-toolkit只有最新的beta版本才支持初始化vue

三、檢測是否安裝成功

? ? 輸入命令:weex --version

? ? ?輸入命令:weex

v1.0.1-beta.6

Usage: weex[options]

Usage: weex init [projectName]

選項:?

? --port? ? http listening port number ,default is 8081? ? ? ? ? [默認值: 8081]?

? --wsport? websocket listening port number ,default is 8082? ? ? [默認值: 8082]?

? --output? to build the js bundle to the specify a path ? ?[默認值: "no JSBundle output"]

Usage:weexwhereis one of:? ? ?

debug? ? ? ? ? ? ? start weex debugger? ? ?

compile? ? ? ? ? ? compile we/vue file? ? ?

run? ? ? ? ? ? ? ? run your projectweex

--help? ? ? help on

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容

  • Weex 是一套簡單易用的跨平臺開發方案,能以 web 的開發體驗構建高性能、可擴展的 native 應用,為了做...
    假裝我是程序猿閱讀 546評論 0 1
  • Spring Cloud為開發人員提供了快速構建分布式系統中一些常見模式的工具(例如配置管理,服務發現,斷路器,智...
    卡卡羅2017閱讀 134,837評論 18 139
  • 第一步:安裝依賴 1.brew install node 安裝node.js環境,同步會安裝npm包管理工具 2....
    碧玉小瑕閱讀 345評論 0 0
  • 什么是 weex weex 是阿里開源的一套三端通用方案,只要編寫一次代碼就能運行在 iOS、Android 和 ...
    Tatinic閱讀 1,320評論 0 9
  • 我們得承認我們是沒有語文教育傳統的。歷史上的私塾和塾師,首先是教做人做事的。今天我們該知道這不叫語文,該叫“社會政...
    yhj靈閱讀 218評論 0 0