And the mounting step STF MAC pit

【Mac OS X】brew: command not found

ruby -e"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

 

adb install macOS

 

By installing homebrew

brew cask install android-platform-tools

<!--more-->

Test is normal

adb devices

Installation Manual

# 移除老的安装包
rm -rf ~/.android-sdk-macosx/

# 下载 sdk
# 下载地址:developer.android.com

# 将下载的文件解压并移动到 ~/.android-sdk-macosx
cd ~/Downloads(你的下载目录)/
unzip android-sdk*.zip
mv android-sdk-macosx/ ~/.android-sdk-macosx

# 运行 SDK Manager sh ~/.android-sdk-macosx/tools/android # 根据你的需要选择,(我只需要Android SDK Platform-tools)[可选步骤] # 选好后 Install #环境变量设置 echo 'export PATH=$PATH:~/.android-sdk-macosx/platform-tools/' >> ~/.bash_profile # 更新配置文件 source ~/.bash_profile # 测试是否正常安装 adb devices


installation

On github reference tutorials , overall in two steps, that it is easy to
first check the basic environment

node -v
npm -v
java -version
adb version

If the above four points are OK, then you can start the following
first step

brew install rethinkdb graphicsmagick zeromq protobuf yasm pkg-config

The second step

npm install -g stf

So far, stf ideally should be installed successfully.
But there will always encounter some pit.

Stepped pit

node version of the problem

General installation node, are installed directly brew

brew install node

Here the default installed version is relatively high, while stf latest version of the node is not done perfectly compatible, so we need to install an older version of the node, in order to better 8.x

In github point of view, a lot of people question to the author, the author will reply, it is recommended to use 8.x


 
node version.png

As for how node by quasi over the old version, it is recommended to use nvm
how to use specific, I refer to is this article

Error [email protected] install: node-gyp rebuild

My main problem is encountered during the installation process, given as follows:

gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/Users/dongshichao/.nvm/versions/node/v8.11.0/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:336:16) gyp ERR! stack at emitTwo (events.js:126:13) gyp ERR! stack at ChildProcess.emit (events.js:214:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12) gyp ERR! System Darwin 17.5.0 gyp ERR! command "/Users/dongshichao/.nvm/versions/node/v8.11.0/bin/node" "/Users/dongshichao/.nvm/versions/node/v8.11.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/dongshichao/.nvm/versions/node/v8.11.0/lib/node_modules/stf/node_modules/bufferutil gyp ERR! node -v v8.11.0 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! bufferutil@1.3.0 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the bufferutil@1.3.0 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /Users/dongshichao/.npm/_logs/2018-12-17T15_00_38_264Z-debug.log 

I started node version 10.x, then installing the above reported wrong
then I saw on github author's reply to others, it is recommended to use 8.x, I just changed the problem persists 8.11.
Later installation 8.14, 8.14 installed successfully use
the end, my version is

dongshichaodeMacBook-Pro:~ dongshichao$ node -v v8.14.0 dongshichaodeMacBook-Pro:~ dongshichao$ npm -v 6.4.1 

End step on the two pits, enter

stf doctor

No error, the installation is successful


 
stfdoctor.png

run

安装成功后,启动stf

rethinkdb
stf local

本地浏览器输入

localhost:7100

登录后出现如下界面


 
devices.png

至此,stf在mac上安装算是完成。



 

 

Guess you like

Origin www.cnblogs.com/Gbeniot/p/12061793.html
STF