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

Unable to install wdio-image-comparison-service #112

Closed
Searcher865 opened this issue Feb 4, 2023 · 4 comments
Closed

Unable to install wdio-image-comparison-service #112

Searcher865 opened this issue Feb 4, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@Searcher865
Copy link

Searcher865 commented Feb 4, 2023

Environment (please complete the following information):

  • Node.js version: [v18.14.0]
  • NPM version: [9.3.1]
  • Browser name and version: [Chrome 109.0.5414.119]
  • Platform name and version: [macOS Ventura 13.2 (22D49) - macbook air m1]
  • Framework name and version: [webdriverIO 8]
  • Plugin name and version: [last]
  • webdriver-image-comparison version: [last]

Describe the bug
Unable to install wdio-image-comparison

To Reproduce

  1. try npm i wdio-image-comparison
    or
    wdio-image-comparison-service
    or
    npm init wdio . (select during initialization wdio-image-comparison-service)
    [Include code or an example repository that can easily be set up]

Expected behavior
Successful installation

Log

logs

@Searcher865 Searcher865 changed the title Unable to install wdio-image-comparison Unable to install wdio-image-comparison-service Feb 4, 2023
@wswebcreation
Copy link
Member

You're on NodeJS 18, there's an open ticket for the core of this module to upgrade it to that. It hasn't been fixed and released. If you revert back to NodeJS 16 it will work

@wswebcreation wswebcreation added the bug Something isn't working label Feb 5, 2023
@fbell123
Copy link

fbell123 commented Feb 9, 2023

this is actually an issue with canvas as there isn't currently and arm64 build, there is a workaround for the time being https://github.com/Automattic/node-canvas/wiki/Installation:-Mac-OS-X

I used the homebrew installation and it works

For info, this is the issue on node-canvas board Automattic/node-canvas#1662

@GRmeB
Copy link

GRmeB commented Apr 14, 2023

I'm using Mac OS Ventura 13.3.1 with Node.js 18.12.1 and 16.20.0 and image comparison plugin 5.0.2. The workaround with homebrew is not working for me. I'm a little bit frustrated on that canvas issue. Maybe someone has some more hints for me?

I still get messages like that: ERROR @wdio/utils:initialiseServices: Error: Couldn't initialise "wdio-image-comparison-service"

That seems to me that the image-comparison-service is not working for me :(

@wswebcreation
Copy link
Member

This should be fixed with #118

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants