ERROR in Node Sass does not yet support your current environment: OS X 64-bit with Unsupported runtime (57)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v3.13.1
@ ./res/web_modules/nine-bootstrap/nine-bootstrap.scss 4:14-133
重装 NASS
Something went wrong installing the "sharp" module
Cannot find module '../build/Release/sharp.node'
https://sharp.pixelplumbing.com/en/stable/install/
https://github.com/lovell/sharp/issues
进入 stt/node_modules/sharp/ 执行 npm install
2019-10-24T03:15:12.440Z FTL/ios-device 14512 [ad4262f008ed7fe9685effbca3235b96b3575110] Setup had an error Error: Cannot find module '/Users/lxm/work/stf/node_modules/jpeg-turbo/lib/binding/node-v57-darwin-x64/jpegturbo.node'
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object. (/Users/lxm/work/stf/node_modules/jpeg-turbo/index.js:5:15)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object. (/Users/lxm/work/stf/lib/units/ios-device/plugins/vnc/index.js:8:12)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at /Users/lxm/work/stf/lib/units/ios-device/index.js:23:21
at SerialSyrup.ParallelSyrup.invoke (/Users/lxm/work/stf/node_modules/stf-syrup/lib/parallel.js:54:24)
at /Users/lxm/work/stf/node_modules/stf-syrup/lib/serial.js:43:33
at tryCatch1 (/Users/lxm/work/stf/node_modules/stf-syrup/node_modules/bluebird/js/main/util.js:63:19)
at Promise$_callHandler as _callHandler
at Promise$_settlePromiseFromHandler as _settlePromiseFromHandler
at Promise$_settlePromiseAt as _settlePromiseAt
at Promise$_fulfillPromises as _fulfillPromises
at Async$_consumeFunctionBuffer as _consumeFunctionBuffer
at Async$consumeFunctionBuffer (/Users/lxm/work/stf/node_modules/stf-syrup/node_modules/bluebird/js/main/async.js:37:14)
at _combinedTickCallback (internal/process/next_tick.js:132:7)
at process._tickCallback (internal/process/next_tick.js:181:9)
2019-10-24T03:15:12.442Z FTL/util:lifecycle 14512 [ad4262f008ed7fe9685effbca3235b96b3575110] Shutting down due to fatal error
2019-10-24T03:15:12.450Z INF/ios-provider 14466 [] Cleaning up device worker "ad4262f008ed7fe9685effbca3235b96b3575110"
2019-10-24T03:15:12.450Z ERR/ios-provider 14466 [] Device worker "ad4262f008ed7fe9685effbca3235b96b3575110" died with code 1
进入/stf/node_modules/jpeg-turbo/ 执行 npm install
2019-10-24T03:28:47.094Z INF/ios-device:plugins:wdaProxy 17611 [ad4262f008ed7fe9685effbca3235b96b3575110] start WDA with params:build-for-testing,test-without-building,-project,/Users/lxm/work/iOS-Tagent-master/WebDriverAgent.xcodeproj,-scheme,WebDriverAgentRunner,-destination,id=ad4262f008ed7fe9685effbca3235b96b3575110,platform=iOS,-configuration,Debug,IPHONEOS_DEPLOYMENT_TARGET=10.2
2019-10-24T03:28:48.569Z INF/ios-device:plugins:wdaProxy 17611 [ad4262f008ed7fe9685effbca3235b96b3575110] xcodebuild 构建成功
2019-10-24T03:28:58.052Z INF/ios-device:plugins:wdaProxy 17611 [ad4262f008ed7fe9685effbca3235b96b3575110] start WDA with params:build-for-testing,test-without-building,-project,/Users/lxm/work/iOS-Tagent-master/WebDriverAgent.xcodeproj,-scheme,WebDriverAgentRunner,-destination,id=ad4262f008ed7fe9685effbca3235b96b3575110,platform=iOS,-configuration,Debug,IPHONEOS_DEPLOYMENT_TARGET=10.2
2019-10-24T03:28:59.537Z INF/ios-device:plugins:wdaProxy 17611 [ad4262f008ed7fe9685effbca3235b96b3575110] xcodebuild 构建成功
2019-10-25T01:39:54.447Z FTL/ios-device 52073 [ad4262f008ed7fe9685effbca3235b96b3575110] Setup had an error Error: Command failed: idevicescreenshot -u ad4262f008ed7fe9685effbca3235b96b3575110 ad4262f008ed7fe9685effbca3235b96b3575110.png
at checkExecSyncError (child_process.js:607:13)
at execSync (child_process.js:647:13)
at Object.getDisplay (/Users/apple/Desktop/stf/lib/units/ios-device/support/deviceinfo.js:33:18)
at readInfo (/Users/apple/Desktop/stf/lib/units/ios-device/plugins/util/display.js:36:25)
at /Users/apple/Desktop/stf/lib/units/ios-device/plugins/util/display.js:46:12
at SerialSyrup.ParallelSyrup.invoke (/Users/apple/Desktop/stf/node_modules/stf-syrup/lib/parallel.js:54:24)
at /Users/apple/Desktop/stf/node_modules/stf-syrup/lib/serial.js:43:33
at tryCatch1 (/Users/apple/Desktop/stf/node_modules/stf-syrup/node_modules/bluebird/js/main/util.js:63:19)
at Promise$_callHandler as _callHandler
at Promise$_settlePromiseFromHandler as _settlePromiseFromHandler
at Promise$_settlePromiseAt as _settlePromiseAt
at Promise$_fulfillPromises as _fulfillPromises
at Async$_consumeFunctionBuffer as _consumeFunctionBuffer
at Async$consumeFunctionBuffer (/Users/apple/Desktop/stf/node_modules/stf-syrup/node_modules/bluebird/js/main/async.js:37:14)
at _combinedTickCallback (internal/process/next_tick.js:132:7)
at process._tickCallback (internal/process/next_tick.js:181:9)
执行 idevicescreenshot -u ad4262f008ed7fe9685effbca3235b96b3575110 ad4262f008ed7fe9685effbca3235b96b3575110.png
提示
Could not connect to lockdownd, error code -21
修改 var/db/lockdown 文件夹的读写权限。
chmod /777 var/db/lockdown
1、凡是 npm 的问题,请直接使用 npm install。
2、如果是权限不足,在命令后面加 --unsafe-perm
3、如果是某个包没有 node 文件,比如 jpeg、zmq(zeromq),请在该目录下执行 npm rebuild 制造出 zmq 文件。但是如果以前可以,现在不行,可能在你成功之前,要对整个 stf,nodejs 依赖包进行备份,然后再覆盖上去,楼主已经遇到无数次这种问题了。
4、iOS 如果要安装软件,用 brew 命令,但是 brew 命令太慢,有时候要改一下源。