安裝node.js(含npm)
到node.js官網下載安裝包我用的是12.13.0
安裝cnpm
sudo npm install -g cnpm --registry=https://registry.npm.taobao.org
安裝Cordova(8.0.0),ionic(3.20.0),gulp(3.x)命令
sudo cnpm install -g [email protected]
sudo cnpm install -g [email protected]
全局安裝 gulp:
npm install --global [email protected]
作爲項目的開發依賴(devDependencies)安裝,在項目根目錄下執行:
npm install --save-dev [email protected]
安裝homeBrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
報錯例如:
error: RPC failed; result=56, HTTP code = 200 MiB | 1024 bytes/s
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
解決方法:
git config --global http.postBuffer 524288000
安裝git(2.23.0)
brew install git
安裝xcode