1. 安裝node:
進入node官網下載下傳頁http://nodejs.cn/download/
選擇合适的版本進行下載下傳及安裝。
2. 安裝brew:
在終端輸入下面的指令:
curl -LsSf http://github.com/mxcl/homebrew/tarball/master | sudo tar xvz -C/usr/local --strip 1
如果出現錯誤:
(7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
請嘗試這個解決方法,親測有效:
sudo gem install redis
3. npm安裝appium:
使用npm安裝appium,繼續在終端輸入指令
npm install -g appium --registry=https://registry.npm.taobao.org
cnpm安裝方式後續會有坑,請參考 https://blog.csdn.net/weixin_44710258/article/details/103602834