Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
buchadep opened this issue Mar 7, 2022 · 4 comments

Comments

@buchadep
Copy link

buchadep commented Mar 7, 2022

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
Copy link
Owner

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
Copy link
Author

buchadep commented Mar 7, 2022

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
Copy link
Owner

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
Copy link
Author

buchadep commented Mar 9, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants