sudharsan-selvaraj / appium-dashboard-plugin

Appium plugin that provides complete test logs, video recording of test and device logs(logcat and syslogs) for easy debugging.
114 stars 28 forks source link

Installation Error - Encountered an error when installing package: Cannot read property 'trim' of undefined #55

Open buchadep opened 2 years ago

buchadep commented 2 years ago

pi@raspberrypi:~ $ appium --version 2.0.0-beta.25

pi@raspberrypi:~ $ sudo appium plugin install --source=npm appium-dashboard Attempting to find and install plugin 'appium-dashboard' ⠴ Installing 'appium-dashboard' ⠧ Installing 'appium-dashboard' ⠏ Installing 'appium-dashboard' ✖ Installing 'appium-dashboard' Error: Encountered an error when installing package: Cannot read property 'trim' of undefined

sudharsan-selvaraj commented 2 years ago

Hi @buchadep , Thanks for reporting the issue. Could you also provide a few additional details about the operating system and node version for better debugging?

buchadep commented 2 years ago

It raspberry pi pi@raspberrypi:~ $ cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" NAME="Debian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"

pi@raspberrypi:~ $ npm --version 7.5.2

pi@raspberrypi:~ $ node -v v12.22.5

sudharsan-selvaraj commented 2 years ago

I have tried it with another Debian versions and couldn't reproduce the issue. Could you also check if the same error occurs if the module is installed directly via npm and attach the logs here for reference npm install -g appium-dashboard.

buchadep commented 2 years ago

Manage to install it, When I upgraded Node and NPM version: root@raspberrypi:/usr# node -v v17.6.0 root@raspberrypi:/usr# npm -v 8.5.1 root@raspberrypi:/usr#

Only issue I am getting now is, Videos are not coming through as session Timed Out. Any specific Session Capabilities we need to set?

[HTTP] --> POST /session/a7edd4dd-ba0a-4318-808c-d022bed87605/appium/stop_recording_screen?internal=true [HTTP] {} [debug] [W3C (a7edd4dd)] Encountered internal error running command: NoSuchDriverError: A session is either terminated or not started