Andremoniy / cypress-visual-regression-resemble-js

MIT License
14 stars 4 forks source link

Plugin not installable? #18

Open nmpcunha opened 1 year ago

nmpcunha commented 1 year ago

Hello,

I've found your plugin/library recently and, when trying it out, I wasn't able to get it installed. Also forked the project and tried both npm i and npm ci on different OS to try to throw off some possibilities on why it was not working properly.

From a very high level look it seems to be related to a package that is not available anymore (404 not found) but, I confess I didn't had a chance to dig deeper.

Screenshot 2023-06-05 154953

Any clues? Thanks in advance!

Context:

Andremoniy commented 1 year ago

Hi @nmpcunha , we will look into it, thanks for the alert

mduivcap commented 1 year ago

I'm facing the same issue with

I've managed to install and configure cypress-visual-regression plugin, but as mentioned in the readme here, anti-alliassing is a thing and I could really use this plugin

HubertArciszewski95 commented 9 months ago

Hey, I also have this issue.

node 18.16.1 npm 9.5.1 Cypress 12.9.0 Windows 10 latest

CaiqueCoelho commented 7 months ago

@nmpcunha @Andremoniy @mduivcap @HubertArciszewski95 this is a known problem from Canvas, you just need to install/update some sub-dependencies with:

brew install pkg-config cairo pango libpng jpeg giflib librsvg pixman

I just created a PR adding a troubleshooting section with this problem and solution #19

mduivcap commented 7 months ago

If a Windows variant of what you do with brew can be included there, that would be awesome

CaiqueCoelho commented 7 months ago

@mduivcap I just added an alternative for Windows

sterno2510 commented 7 months ago

Hi - I recently just added this library and ran into the problem mentioned above. Running brew install pkg-config cairo pango libpng jpeg giflib librsvg pixman solved the problem for me when running locally. However, running it in a gitlab pipeline has produced another error ;

npm ERR! make: Entering directory '/builds/dashboard-experience/candidate-portal/cypress_functional_tests/node_modules/canvas/build'
npm ERR!   SOLINK_MODULE(target) Release/obj.target/canvas-postbuild.node
npm ERR!   COPY Release/canvas-postbuild.node
npm ERR!   CXX(target) Release/obj.target/canvas/src/backend/Backend.o
npm ERR!   CXX(target) Release/obj.target/canvas/src/backend/ImageBackend.o
npm ERR!   CXX(target) Release/obj.target/canvas/src/backend/PdfBackend.o
npm ERR!   CXX(target) Release/obj.target/canvas/src/backend/SvgBackend.o
npm ERR!   CXX(target) Release/obj.target/canvas/src/bmp/BMPParser.o
npm ERR!   CXX(target) Release/obj.target/canvas/src/Backends.o
npm ERR!   CXX(target) Release/obj.target/canvas/src/Canvas.o
npm ERR! make: Leaving directory '/builds/dashboard-experience/candidate-portal/cypress_functional_tests/node_modules/canvas/build'
npm ERR! Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/builds/dashboard-experience/candidate-portal/cypress_functional_tests/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/builds/dashboard-experience/candidate-portal/cypress_functional_tests/node_modules/canvas/build/Release --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v115' (1)
npm ERR! node-pre-gyp ERR! install response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.9.0/canvas-v2.9.0-node-v115-linux-glibc-x64.tar.gz 
npm ERR! node-pre-gyp WARN Pre-built binaries not installable for canvas@2.9.0 and node@20.9.0 (node-v115 ABI, glibc) (falling back to source compile with node-gyp) 
npm ERR! node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.9.0/canvas-v2.9.0-node-v115-linux-glibc-x64.tar.gz 

Any advice would be greatly appreciated on this one.

iepoch commented 2 weeks ago

node 21.7.2 npm 10.8.0 Cypress 13.7.3 Windows 11 latest

And I can not install this package either.