GithubHelp home page GithubHelp logo

easilytest / stf Goto Github PK

View Code? Open in Web Editor NEW
333.0 9.0 103.0 4.09 MB

Batch control based on STF support Mac/Linux,基于stf二次开发群控管理平台,支持Mac,Linux部署,一机多控

License: Other

JavaScript 85.00% CSS 3.78% Pug 10.04% HTML 0.05% Less 0.03% SCSS 1.10%
stf batch-control ios android automation group-control-mobile-phone iphone usbmuxd wda smartphone-test-farm

stf's Introduction

基于openstf二次开发的群控管理平台

English | 中文

| 本项目根据openstf以及openstf-ios二次开发。同时支持Android/iOS单体控制以及群体控制。
| 本项目可以兼容Linux/Mac,利用最新开源的tidevice实现wda快速编译运行,不一定需要Mac设备的支持,体验不一样的openstf.

  • 单控: 基于原生的openstf,操作便捷可使用文件安装,shell、剪贴板、日志等功能;
  • 群控: 批量支持机器同屏展示,一键home/移除等功能;

ScreenShot

快速开始

仅需两步快速安装 (Mac):

  1. 准备一台 Mac 主机;

  2. 安装 brew 以及nodejs,运行以下命令
    pip3 install -U tidevice
    brew uninstall --ignore-dependencies libimobiledevice
    brew uninstall --ignore-dependencies usbmuxd
    brew install --HEAD usbmuxd
    brew unlink usbmuxd
    brew link usbmuxd
    brew install --HEAD libimobiledevice
    brew install --HEAD ideviceinstaller
    brew install carthage
    brew install socat
    brew install graphicsmagick zeromq protobuf yasm pkg-config
    brew cask install android-platform-tools

  3. 进入本项目目录,执行 cnpm install 或者 npm install

  4. 如需使用ios接入,配置WebDriverAgent,clone代码,clone完毕后进入目录,执行./Scripts/bootstrap.sh 下载 wda所需依赖库 安装xcode(版本< 10.3),运行WebDriverAgent

  5. 如运行错误,检查stf doctor

Linux(centos):

  1. 基础环境准备
    pip3 install -U tidevice
    sudo -s
    yum update
    yum install git
    yum install yum
    yum -y install gcc patch yum install gcc-c++
    yum install gcc-gfortran
    yum install zeromq-devel

  2. 安装rethinkdb
    git clone https://github.com/rethinkdb/rethinkdb.git cd rethinkdb ./configure --allow-fetch make -j4 make install

    安装GraphicsMagick

    wget https://iweb.dl.sourceforge.net/project/graphicsmagick/graphicsmagick/1.3.36/GraphicsMagick-1.3.36.tar.gz
    tar -zxvf GraphicsMagick-1.3.36.tar.gz
    cd GraphicsMagick-1.3.36
    ./configure --prefix=/usr/local/gm
    make
    make install

    安装zeromq

    wget https://github.com/zeromq/libzmq/releases/download/v4.2.2/zeromq-4.2.2.tar.gz
    tar zxvf zeromq-4.2.2.tar.gz
    cd zeromq-4.2.2
    ./configure --prefix=/usr/local/zeromq
    make
    make install

    安装pkg-config

    wget http://pkgconfig.freedesktop.org/releases/pkg-config-0.29.2.tar.gz
    tar -zxvf pkg-config-0.29.2.tar.gz
    cd pkg-config-0.29.2
    ./configure --prefix=/usr/local/pkg-config --with-internal-glib
    make
    make intall

    安装yasm

    wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
    tar -zxvf yasm-1.3.0.tar.gz
    cd yasm-1.3.0
    ./configure --prefix=/usr/local/yasm
    make
    make install

    安装libsodium

    wget https://download.libsodium.org/libsodium/releases/libsodium-1.0.18.tar.gz
    tar -zxvf libsodium-1.0.18.tar.gz cd libsodium-1.0.18 ./autogen.sh
    ./configure --prefix=/usr/local/libsodium
    make
    make install

    安装protobuf

    wget https://github.com/google/protobuf/releases/download/v3.5.0/protobuf-cpp-3.5.0.tar.gz
    tar -zxvf protobuf-cpp-3.5.0.tar.gz
    cd protobuf-3.5.0
    ./configure --prefix=/usr/local/protobuf
    make
    make intall

    软链接

    ln -s /usr/local/gm/bin/* /usr/local/bin/
    ln -s /usr/local/yasm/bin/* /usr/local/bin/
    ln -s /usr/local/libsodium/bin/* /usr/local/bin/
    ln -s /usr/local/protobuf/bin/* /usr/local/bin/

    更新/etc/profile

    export PKG_CONFIG_PATH=/usr/local/pkg-config export PATH=$PKG_CONFIG_PATH:$PATH

    安装libimobiledevice、ideviceinstaller
    git clone https://github.com/libimobiledevice/libimobiledevice.git
    cd libimobiledevice
    ./autogen.sh --prefix=/opt/local --enable-debug
    make
    sudo make install
    git clone https://github.com/libimobiledevice/ideviceinstaller.git
    cd ideviceinstaller
    ./autogen.sh
    make
    sudo make install

  3. cd到目录执行cnpm install或者npm install + glup build

相关工具

测试使用版本

  • macOS Catalina 10.15.6
  • CentOS Linux release 7.8.2003 (Core)
  • xcode (10.0)
  • nodejs (8.9.0)
  • python (3.7.6)

产品优势

  • 开源:基于开源、只要你敢点赞,我就会一直迭代下去,遇到bug或建议请提issue;

技术栈

  • angularJS ,nodejs

致谢

  • openstf:感谢 openstf 作为基础引擎
  • stf:感谢 mrx1203 提供的iOS设计思路
  • tidevice:感谢 阿里 开源的iOS设备通信工具

如果觉得好用的话,请给我点个star,推荐chrome游览器,显示体验更佳,开源不易且赞且珍惜。

License & Copyright

Licensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0  

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions and limitations under the License.

stf's People

Contributors

easilytest avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

stf's Issues

作者还更新吗,在macos12.6.3没法使用,在npm install后会报错

npm ERR! SyntaxError: EOL while scanning string literal
npm ERR! gyp ERR! configure error 
npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1
npm ERR! gyp ERR! stack     at ChildProcess.onCpExit (/Users/gawinwong/work/wda-multi-control/stf/node_modules/node-gyp/lib/configure.js:345:16)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:512:28)
npm ERR! gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:293:12)
npm ERR! gyp ERR! System Darwin 21.6.0
npm ERR! gyp ERR! command "/usr/local/Cellar/node/19.8.0/bin/node" "/Users/gawinwong/work/wda-multi-control/stf/node_modules/.bin/node-gyp" "rebuild"
npm ERR! gyp ERR! cwd /Users/gawinwong/work/wda-multi-control/stf/node_modules/bufferutil
npm ERR! gyp ERR! node -v v19.8.0
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok

编译libimobiledevice时出错

checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether gcc and cc understand -c and -o together... yes
./configure: line 4594: AC_PROG_LIBTOOL: command not found
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libusbmuxd... no
configure: error: Package requirements (libusbmuxd-2.0 >= 2.0.2) were not met:

No package 'libusbmuxd-2.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables libusbmuxd_CFLAGS
and libusbmuxd_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

dyld: lazy symbol binding failed: Symbol not found: _zmq_version

node 8.9.1 npm 5.5.1 mac 系统11.1
在stf 目录下 cnpm insatll 完成依赖安装后,使用stf doctor 命令查看环境,报错
dyld: lazy symbol binding failed: Symbol not found: _zmq_version
Referenced from: /Users/ly/de/ti/stf/node_modules/_zmq@2.15.3@zmq/build/Release/zmq.node
Expected in: flat namespace

QQ图片20210625163919

求教安装运行,如下日志如何解决

在bin目录下执行:./stf local --public-ip 192.168.15.180
(node版本用8.x, 10.x , 11.x都试过)
报:
YError: Invalid third argument. Expected string but received function.
at argumentTypeError (/Users/caro/EasilyTest/stf/node_modules/yargs/build/index.cjs:163:11)
at parsed.optional.forEach.optional (/Users/caro/EasilyTest/stf/node_modules/yargs/build/index.cjs:145:17)
at Array.forEach ()
at argsert (/Users/caro/EasilyTest/stf/node_modules/yargs/build/index.cjs:138:25)
at Object.version (/Users/caro/EasilyTest/stf/node_modules/yargs/build/index.cjs:2501:9)
at Object. (/Users/caro/EasilyTest/stf/lib/cli/index.js:45:4)
at Module._compile (internal/modules/cjs/loader.js:816:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
at Module.load (internal/modules/cjs/loader.js:685:32)
at Function.Module._load (internal/modules/cjs/loader.js:620:12)
at Module.require (internal/modules/cjs/loader.js:723:19)
at require (internal/modules/cjs/helpers.js:14:16)
at Object. (/Users/caro/EasilyTest/stf/lib/cli/please.js:2:1)
at Module._compile (internal/modules/cjs/loader.js:816:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
at Module.load (internal/modules/cjs/loader.js:685:32)
2021-04-28T00:02:44.990Z INF/util:procutil 83769 [*] Forking "/Users/caro/EasilyTest/stf/lib/cli migrate"
YError: Invalid third argument. Expected string but received function.
at argumentTypeError (/Users/caro/EasilyTest/stf/node_modules/yargs/build/index.cjs:163:11)
at parsed.optional.forEach.optional (/Users/caro/EasilyTest/stf/node_modules/yargs/build/index.cjs:145:17)
at Array.forEach ()
at argsert (/Users/caro/EasilyTest/stf/node_modules/yargs/build/index.cjs:138:25)
at Object.version (/Users/caro/EasilyTest/stf/node_modules/yargs/build/index.cjs:2501:9)
at Object. (/Users/caro/EasilyTest/stf/lib/cli/index.js:45:4)
at Module._compile (internal/modules/cjs/loader.js:816:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
at Module.load (internal/modules/cjs/loader.js:685:32)
at Function.Module._load (internal/modules/cjs/loader.js:620:12)
at Function.Module.runMain (internal/modules/cjs/loader.js:877:12)
at internal/main/run_main_module.js:21:11
/Users/caro/EasilyTest/stf/node_modules/yargs/build/index.cjs:2772
throw err;
^

TypeError: ProtoBuf.loadProtoFile is not a function
at Object. (/Users/caro/EasilyTest/stf/lib/wire/index.js:5:21)
at Module._compile (internal/modules/cjs/loader.js:816:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
at Module.load (internal/modules/cjs/loader.js:685:32)
at Function.Module._load (internal/modules/cjs/loader.js:620:12)
at Module.require (internal/modules/cjs/loader.js:723:19)
at require (internal/modules/cjs/helpers.js:14:16)
at Object. (/Users/caro/EasilyTest/stf/lib/wire/util.js:3:12)
at Module._compile (internal/modules/cjs/loader.js:816:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
at Module.load (internal/modules/cjs/loader.js:685:32)
at Function.Module._load (internal/modules/cjs/loader.js:620:12)
at Module.require (internal/modules/cjs/loader.js:723:19)
at require (internal/modules/cjs/helpers.js:14:16)
at Object. (/Users/caro/EasilyTest/stf/lib/db/api.js:9:16)
at Module._compile (internal/modules/cjs/loader.js:816:30)

/Users/caro/EasilyTest/stf/node_modules/bluebird/js/main/promise.js:680
throw e;
^
ExitError: Exit code "1"
at ChildProcess. (/Users/caro/EasilyTest/stf/lib/util/procutil.js:49:23)
at ChildProcess.emit (events.js:193:13)
at Process.ChildProcess._handle.onexit (internal/child_process.js:255:12)

英文版 wang -> want

What is the issue or idea you have?

Does it only happen on a specific device? Please run adb devices -l and paste the corresponding row.

Please provide the steps to reproduce the issue.

What is the expected behavior?

Do you see errors or warnings in the stf local output? If so, please paste them or the full log here.

Please run stf doctor and paste the output here.

请问mac端是用node的什么版本编译的,另外,想私聊作者,寻求合作

What is the issue or idea you have?

Does it only happen on a specific device? Please run adb devices -l and paste the corresponding row.

Please provide the steps to reproduce the issue.

What is the expected behavior?

Do you see errors or warnings in the stf local output? If so, please paste them or the full log here.

Please run stf doctor and paste the output here.

请问支持ARM架构机器部署吗?还有是否支持安卓11

What is the issue or idea you have?

Does it only happen on a specific device? Please run adb devices -l and paste the corresponding row.

Please provide the steps to reproduce the issue.

What is the expected behavior?

Do you see errors or warnings in the stf local output? If so, please paste them or the full log here.

Please run stf doctor and paste the output here.

有大佬吗?gulp build 报错 和 Issue 1 的报错好像差不多,本人小白,不知道哪里查哪些依赖没下全,如何重新下载?

What is the issue or idea you have?

最近 2 天安装好像遇到里面 Issue1 #1 的问题,
我遇到差不多的报错,Issue1 的作者说有些依赖没下全,本人小白,不知道哪里查哪些依赖没下全,如何重新下载?

Please provide the steps to reproduce the issue.

执行npm install gulp build 的完整日志在:
https://github.com/JaminZhang/stf/blob/master/logs/stf-install-log.sh

主要报错是在执行 gulp build 如下图:

gulp-build-error

  [188] ./~/lodash/lodash.js 543 kB {1} {3} {5} [built]
  [275] ./res/app/components/stf/util/common/index.js 276 bytes {1} {3} {5} [built]
  [276] ./res/app/components/stf/util/common/common-service.js 6.21 kB {1} {3} {5} [built]
  [578] ./res/auth/mock/scripts/signin/index.js 476 bytes {5} [built]
  [579] ./res/auth/mock/scripts/signin/signin.css 950 bytes {5} [built]
  [580] ./~/css-loader!./res/auth/mock/scripts/signin/signin.css 1.71 kB {5} [built]
  [581] ./res/auth/mock/scripts/signin/signin.pug 2.39 kB {5} [built]
  [582] ./res/auth/mock/scripts/signin/signin-controller.js 1.23 kB {5} [built]
chunk    {6} entry/commons.entry.js (entry/commons.entry.js) 0 bytes [rendered]

ERROR in ./res/app/app.js
Module not found: Error: Cannot resolve module 'angular' in /root/stf/res/app
 @ ./res/app/app.js 6:2-20

ERROR in ./res/auth/mock/scripts/entry.js
Module not found: Error: Cannot resolve module 'angular' in /root/stf/res/auth/mock/scripts
 @ ./res/auth/mock/scripts/entry.js 4:2-20

ERROR in ./res/auth/ldap/scripts/entry.js
Module not found: Error: Cannot resolve module 'angular' in /root/stf/res/auth/ldap/scripts
 @ ./res/auth/ldap/scripts/entry.js 4:2-20

ERROR in ./res/app/app.js
Module not found: Error: Cannot resolve module 'angular-route' in /root/stf/res/app
 @ ./res/app/app.js 7:2-26

ERROR in ./res/auth/mock/scripts/entry.js
Module not found: Error: Cannot resolve module 'angular-route' in /root/stf/res/auth/mock/scripts
 @ ./res/auth/mock/scripts/entry.js 5:2-26

ERROR in ./res/auth/ldap/scripts/entry.js
Module not found: Error: Cannot resolve module 'angular-route' in /root/stf/res/auth/ldap/scripts
 @ ./res/auth/ldap/scripts/entry.js 5:2-26

ERROR in ./res/app/app.js
Module not found: Error: Cannot resolve module 'angular-touch' in /root/stf/res/app
 @ ./res/app/app.js 8:2-26

ERROR in ./res/auth/mock/scripts/entry.js
Module not found: Error: Cannot resolve module 'angular-touch' in /root/stf/res/auth/mock/scripts
 @ ./res/auth/mock/scripts/entry.js 6:2-26

Please run stf doctor and paste the output here.

root@ubuntu-18-04:~/stf# ./bin/stf -V
3.4.1
root@ubuntu-18-04:~/stf# ./bin/stf doctor
2023-03-18T13:45:39.235Z INF/cli:doctor 79766 [*] OS Arch: x64
2023-03-18T13:45:39.236Z INF/cli:doctor 79766 [*] OS Platform: linux
2023-03-18T13:45:39.236Z INF/cli:doctor 79766 [*] OS Platform: 4.15.0-206-generic
2023-03-18T13:45:39.237Z INF/cli:doctor 79766 [*] Using Node 8.9.0
2023-03-18T13:45:39.255Z INF/cli:doctor 79766 [*] Using ZeroMQ 4.2.5
2023-03-18T13:45:39.267Z INF/cli:doctor 79766 [*] Using ProtoBuf 3.0.0
2023-03-18T13:45:39.267Z INF/cli:doctor 79766 [*] Using GraphicsMagick 1.3.28
2023-03-18T13:45:39.268Z INF/cli:doctor 79766 [*] Using ADB 1.0.39
2023-03-18T13:45:39.279Z INF/cli:doctor 79766 [*] Using RethinkDB 2.4.3~0bionic

iOS手机USB连接到Linux服务器的物理机上,利用tidevice成功启动WDA, 但是ping WebDriverAgent WebSocket一直没响应,导致没有手机图像显示。

启动命令:
/usr/local/bin/node /home/data/new-stf/stf/lib/cli ios-device --serial 7af03b61f78ee26b4ec6186846b693e83cbedcfb --type device --provider localhost.localdomain --screen-port 6100 --connect-port 6101 --vnc-port 6102 --public-ip 10.0.242.17 --group-timeout 900 --storage-url http://localhost:7100/ --wda-port 6103 --mjpeg-port 6104 --wda-remote-port 8100 --wda-mjpeg-remote-port 9100 --screen-jpeg-quality 80 --screen-ping-interval 30000 --screen-ws-url-pattern ws://${publicIp}:${publicPort} --connect-url-pattern ${publicIp}:${publicPort} --heartbeat-interval 10000 --boot-complete-timeout 60000 --vnc-initial-size 600x800 --mute-master never --wda-path /home/data/new-stf/stf/WebDriverAgent/ --connect-sub tcp://127.0.0.1:7114 --connect-push tcp://127.0.0.1:7116
我把libimobiledevice 代码里都替换成tidevice命令了。

适合安卓手机不?

What is the issue or idea you have?

Does it only happen on a specific device? Please run adb devices -l and paste the corresponding row.

Please provide the steps to reproduce the issue.

What is the expected behavior?

Do you see errors or warnings in the stf local output? If so, please paste them or the full log here.

Please run stf doctor and paste the output here.

Could not connect to screenshotr!

idevicescreenshot -u 00008020-001E21243431002E 00008020-001E21243431002E.png
Could not connect to screenshotr! 启动报错。
这个截图的是否可以替换成tidevice screenshot screenshot.jpg

作者大大,能否出一个mac 12的版本?或者改哪里才能在mac12上跑起来

在mac12上一直连不上设备,总是准备中,又断开,日志如下:
2022-06-20T08:49:10.068Z INF/ios-provider 87441 [] Found device "cce2466fb8875215670f22970a0a5c01bd909209" (device)
2022-06-20T08:49:10.130Z INF/reaper 87439 [reaper001] Device "cce2466fb8875215670f22970a0a5c01bd909209" is present
2022-06-20T08:49:10.298Z INF/ios-provider 87441 [
] Registered device "cce2466fb8875215670f22970a0a5c01bd909209"
2022-06-20T08:49:10.718Z INF/ios-device:support:push 87464 [cce2466fb8875215670f22970a0a5c01bd909209] Sending output to "tcp://127.0.0.1:7116"
2022-06-20T08:49:10.721Z INF/ios-device 87464 [cce2466fb8875215670f22970a0a5c01bd909209] Preparing device
(node:87464) Warning: N-API is an experimental feature and could change at any time.
2022-06-20T08:49:11.348Z INF/ios-device:support:sub 87464 [cce2466fb8875215670f22970a0a5c01bd909209] Receiving input from "tcp://127.0.0.1:7114"
2022-06-20T08:49:11.349Z INF/ios-device:support:sub 87464 [cce2466fb8875215670f22970a0a5c01bd909209] Subscribing to permanent channel "ALL"
2022-06-20T08:49:11.353Z INF/ios-device:plugins:display 87464 [cce2466fb8875215670f22970a0a5c01bd909209] Reading display info
dyld[87464]: missing symbol called
2022-06-20T08:49:12.175Z WRN/ios-provider 87441 [
] Device worker "cce2466fb8875215670f22970a0a5c01bd909209" was killed with signal SIGABRT, assuming deliberate action and not restarting
2022-06-20T08:49:12.176Z INF/ios-provider 87441 [] Cleaning up device worker "cce2466fb8875215670f22970a0a5c01bd909209"
2022-06-20T08:49:12.177Z INF/ios-provider 87441 [
] Device worker "cce2466fb8875215670f22970a0a5c01bd909209" has retired
2022-06-20T08:49:12.177Z INF/ios-provider 87441 [*] remove the device cce2466fb8875215670f22970a0a5c01bd909209 frome devicelist

stf doctor如下
2022-06-20T08:53:50.568Z INF/cli:doctor 87934 [] OS Arch: x64
2022-06-20T08:53:50.570Z INF/cli:doctor 87934 [
] OS Platform: darwin
2022-06-20T08:53:50.570Z INF/cli:doctor 87934 [] OS Platform: 21.5.0
2022-06-20T08:53:50.570Z INF/cli:doctor 87934 [
] Using Node 8.9.3
2022-06-20T08:53:50.585Z INF/cli:doctor 87934 [] Using ZeroMQ 4.3.4
2022-06-20T08:53:50.599Z ERR/cli:doctor 87934 [
] ADB is not installed (adb is missing)
2022-06-20T08:53:50.600Z INF/cli:doctor 87934 [] Using ProtoBuf 3.17.3
2022-06-20T08:53:50.600Z INF/cli:doctor 87934 [
] Using GraphicsMagick 1.3.36
2022-06-20T08:53:50.622Z INF/cli:doctor 87934 [*] Using RethinkDB 2.4.1

stf 启动报错,doctor检查依赖没问题

./stf doctor 检查没问题
2021-06-16T08:19:56.067Z INF/cli:doctor 164990 [] OS Arch: x64
2021-06-16T08:19:56.069Z INF/cli:doctor 164990 [
] OS Platform: linux
2021-06-16T08:19:56.070Z INF/cli:doctor 164990 [] OS Platform: 3.10.0-1160.21.1.el7.x86_64
2021-06-16T08:19:56.070Z INF/cli:doctor 164990 [
] Using Node 6.17.1
2021-06-16T08:19:56.098Z INF/cli:doctor 164990 [] Using ZeroMQ 4.3.2
2021-06-16T08:19:56.123Z INF/cli:doctor 164990 [
] Using ADB 1.0.31
2021-06-16T08:19:56.124Z INF/cli:doctor 164990 [] Using ProtoBuf 3.11.2
2021-06-16T08:19:56.125Z INF/cli:doctor 164990 [
] Using GraphicsMagick 1.3.34
2021-06-16T08:19:56.125Z INF/cli:doctor 164990 [*] Using RethinkDB 2.4.0

启动报错:./stf local --public-ip 10.0.242.17
2021-06-16T08:15:59.041Z INF/db 164378 [*] Connecting to 127.0.0.1:28015
../lib/cli websocket

选项:
-h, --help Show help. [布尔]
-V, --version Show version. [布尔]
--connect-push, -c App-side ZeroMQ PULL endpoint to connect to. [数组] [必需]
--connect-sub, -u App-side ZeroMQ PUB endpoint to connect to. [数组] [必需]
--port, -p The port to bind to. [数字] [默认值: 7110]
--secret, -s The secret to use for auth JSON Web Tokens. Anyone who
knows this token can freely enter the system if they want,
so keep it safe. [字符串] [必需]
--ssid, -i The name of the session ID cookie.
[字符串] [默认值: "ssid"]
--storage-url, -r URL to the storage unit. [字符串] [必需]

Each option can be be overwritten with an environment variable by converting the
option to uppercase, replacing dashes with underscores and prefixing it with
STF_WEBSOCKET_ (e.g. STF_WEBSOCKET_STORAGE_URL).

Unexpected token ...
2021-06-16T08:15:59.114Z FTL/cli:local 164321 [*] Child process had an error ExitError: Exit code "1"
at ChildProcess. (/home/data/new-stf/stf/lib/util/procutil.js:49:23)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:219:12)

npm install 安装失败

bower cached https://github.com/angular/bower-angular.git#1.8.0
bower validate 1.8.0 against https://github.com/angular/bower-angular.git#>=1.2.1
bower ECMDERR Failed to execute "git ls-remote --tags --heads https://github.com/chieffancypants/angular-hotkeys.git", exit code of #128 fatal: 无法访问 'https://github.com/chieffancypants/angular-hotkeys.git/':LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

Additional error details:
fatal: 无法访问 'https://github.com/chieffancypants/angular-hotkeys.git/':LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
✖ Install fail! RunScriptError: Run "sh -c bower install --allow-root && not-in-install && gulp build || in-install" error, exit code 1
RunScriptError: Run "sh -c bower install --allow-root && not-in-install && gulp build || in-install" error, exit code 1
at ChildProcess.proc.on.code (/Users/oxx/.nvm/versions/node/v8.12.0/lib/node_modules/cnpm/node_modules/runscript/index.js:96:21)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:915:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
npminstall version: 3.28.0
npminstall args: /Users/oxx/.nvm/versions/node/v8.12.0/bin/node /Users/oxx/.nvm/versions/node/v8.12.0/lib/node_modules/cnpm/node_modules/npminstall/bin/install.js --fix-bug-versions --china --userconfig=/Users/oxx/.cnpmrc --disturl=https://npm.taobao.org/mirrors/node --registry=https://registry.nlark.com

使用cnpm install 和npm install 安装失败
使用vpn 并在命令行开启代理

是我的vpn环境导致的吗?

这个支持ios设备吗?

这个支持ios设备吗?有什么版本需求没?越狱或者是13.0以上,git挺不错的,有其他详细的文档或者教程之类的?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.