搭建cordova環境需要以下幾個步驟:
安裝cordova
在控制台輸入:
sudo npm install -g cordova
如果看到如下結果表示安裝成功:
npm warn deprecated [email protected]
.3: the major version is no longer supported. please update to
4.x or newer
npm warn notice [security] lodash has the following vulnerability: 1 low. go here for more details:
.1 - run `npm i npm@latest -g` to upgrade your npm version, and
then `npm audit` to
get more info.
warn notice [security] tunnel-agent has the following vulnerability: 1 moderate. go here for more details:
.3 - run `npm i npm@latest -g` to upgrade your npm version, and
then `npm audit` to
get more info.
warn notice [security] hoek has the following vulnerability: 1 moderate. go here for more details:
.3 - run `npm i npm@latest -g` to upgrade your npm version, and
then `npm audit` to
get more info.
/usr/local/bin/cordova -> /usr/local/lib/node_modules/cordova/bin/cordova
.0added 415 packages in
51.37s
因為cordovar是跨平台的所以需要為專案安裝平台模組,這裡只增加android,新增ios平台類似,在控制台操作如下:
cd hello
cordova platform add android
建立成功時,目錄中platform中會有乙個android的專案如圖所示:
其中建立cordova有可能出現的錯誤如下:
mac 環境搭建
把nginx和prce 放到同一目錄 例如 都放到documents下 cd users mac documents nginx 1.5.9 sudo configure prefix usr local nginx with pcre pcre 8.33 sudo make sudo make i...
mac 搭建lnmp環境
brew 1.5 版本以後將 php 轉至 core 維護。today i d like to announce homebrew 1.6.0.the most significant changes since 1.5.0 are brew install python installing py...
Mac搭建彙編環境
一 準備工作 二 開始搭建 1.掛載masm 直接將masm拖入dosbox的圖示上即可,但是需要每次都這樣,另外可以採用在dosbox開啟視窗使用指令 masm路徑 mount dosbox的路徑進行掛載 掛載之後使用dir指令進行檢查一下,若出現debug等程式即掛載成功!2.開始彙編 1 編寫...