t.me/atinfo_chat Telegram группа по автоматизации тестирования

установка appium на Ubuntu, дает кучу ошибок

Теги: #<Tag:0x00007fd76ae787b0> #<Tag:0x00007fd76ae786e8> #<Tag:0x00007fd76ae785a8> #<Tag:0x00007fd76ae784b8> #<Tag:0x00007fd76ae783c8> #<Tag:0x00007fd76ae78300>

Всем привет, не получается установить appium на убунту:

WARN engine appium@1.18.3: wanted: {“node”:">=8",“npm”:">=6"} (current: {“node”:“8.10.0”,“npm”:“3.5.2”})
/usr/local/bin/appium -> /usr/local/lib/node_modules/appium/build/lib/main.js
/usr/local/bin/authorize-ios -> /usr/local/lib/node_modules/appium/node_modules/.bin/authorize-ios

appium-windows-driver@1.13.0 install /usr/local/lib/node_modules/appium/node_modules/appium-windows-driver
node install-npm.js

/usr/local/lib/node_modules/appium/node_modules/bluebird/js/release/promisify.js:270
throw new TypeError("expecting a function but got " + util.classString(fn));
^
TypeError: expecting a function but got [object Undefined]
at Function.promisify (/usr/local/lib/node_modules/appium/node_modules/bluebird/js/release/promisify.js:270:15)
at Object. (/usr/local/lib/node_modules/appium/node_modules/appium-support/lib/zip.js:17:20)
at Module._compile (module.js:652:30)
at Object.Module._extensions…js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (/usr/local/lib/node_modules/appium/node_modules/appium-support/index.js:10:1)
at Module._compile (module.js:652:30)
at Object.Module._extensions…js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
/usr/local/lib
└── (empty)

npm WARN ws@7.3.1 requires a peer of bufferutil@^4.0.1 but none was installed.
npm WARN ws@7.3.1 requires a peer of utf-8-validate@^5.0.2 but none was installed.
npm ERR! Linux 5.4.0-51-generic
npm ERR! argv “/usr/bin/node” “/usr/bin/npm” “install” “-g” “appium”
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE

npm ERR! appium-windows-driver@1.13.0 install: node install-npm.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the appium-windows-driver@1.13.0 install script ‘node install-npm.js’.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the appium-windows-driver package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node install-npm.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs appium-windows-driver
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls appium-windows-driver
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/yboi/npm-debug.log
npm ERR! code 1

Обновите Node JS до последнего, ну или просто версией выше 10

➜ ~ appium-doctor
info AppiumDoctor Appium Doctor v.1.15.4
info AppiumDoctor ### Diagnostic for necessary dependencies starting ###
info AppiumDoctor :heavy_check_mark: The Node.js binary was found at: /usr/local/bin/node
info AppiumDoctor :heavy_check_mark: Node version is 12.19.0
info AppiumDoctor :heavy_check_mark: ANDROID_HOME is set to: /home/yboi/Android/Sdk
info AppiumDoctor :heavy_check_mark: JAVA_HOME is set to: /usr/lib/jvm/java-8-openjdk-amd64
info AppiumDoctor Checking adb, android, emulator
info AppiumDoctor ‘adb’ is in /home/yboi/Android/Sdk/platform-tools/adb
info AppiumDoctor ‘android’ is in /home/yboi/Android/Sdk/tools/android
info AppiumDoctor ‘emulator’ is in /home/yboi/Android/Sdk/emulator/emulator
info AppiumDoctor :heavy_check_mark: adb, android, emulator exist: /home/yboi/Android/Sdk
info AppiumDoctor :heavy_check_mark: ‘bin’ subfolder exists under ‘/usr/lib/jvm/java-8-openjdk-amd64’
info AppiumDoctor ### Diagnostic for necessary dependencies completed, no fix needed. ###
info AppiumDoctor
info AppiumDoctor ### Diagnostic for optional dependencies starting ###
WARN AppiumDoctor :heavy_multiplication_x: opencv4nodejs cannot be found.
info AppiumDoctor :heavy_check_mark: ffmpeg is installed at: /usr/bin/ffmpeg. ffmpeg version 3.4.8-0ubuntu0.2 Copyright © 2000-2020 the FFmpeg developers
info AppiumDoctor :heavy_check_mark: mjpeg-consumer is installed at: /usr/local/lib. Installed version is: 2.0.0
WARN AppiumDoctor :heavy_multiplication_x: bundletool.jar cannot be found
info AppiumDoctor :heavy_check_mark: gst-launch-1.0 and gst-inspect-1.0 are installed at: /usr/bin/gst-launch-1.0 and /usr/bin/gst-inspect-1.0
info AppiumDoctor ### Diagnostic for optional dependencies completed, 2 fixes possible. ###
info AppiumDoctor
info AppiumDoctor ### Optional Manual Fixes ###
info AppiumDoctor The configuration can install optionally. Please do the following manually:
WARN AppiumDoctor ➜ Why opencv4nodejs is needed and how to install it: https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/image-comparison.md
WARN AppiumDoctor ➜ bundletool.jar is used to handle Android App Bundle. Please read http://appium.io/docs/en/writing-running-appium/android/android-appbundle/ to install it
info AppiumDoctor
info AppiumDoctor ###
info AppiumDoctor
info AppiumDoctor Bye! Run appium-doctor again when all manual fixes have been applied!
info AppiumDoctor

опять реклама яхт :smiley: